Page 1 of 1
Https site connecting to wireless Phidget (websocket) error
Posted: Tue Jan 19, 2021 1:10 pm
by djvb
I cannot seem to connect to the phidget webservice (locally) from my website (https) in the chrome browser (kiosk mode).
Im getting the following error:
Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS
Anyonen got tips for me?
Re: Https site connecting to wireless Phidget (websocket) error
Posted: Tue Jan 19, 2021 1:19 pm
by mparadis
The only other time I've seen a user report this error is when they had breakpoints set somewhere in their Javascript that they'd forgotten to clear.
Re: Https site connecting to wireless Phidget (websocket) error
Posted: Tue Jan 19, 2021 1:39 pm
by djvb
No breakpoints set
Problem is that using (insecure) websockets in a secure website triggers this error. And i have to use a secure (https) website (pwa).
(I’m using the plain javascript implementation)
Re: Https site connecting to wireless Phidget (websocket) error
Posted: Wed Jan 20, 2021 2:38 pm
by Patrick
Yes, the network server does not support secure websockets (wss). You will probably needs to set up your webserver to proxy secure websocket connections to the network server.
-Patrick