You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I'm running the app over a secure (https) connection I get an error: "SecurityError: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS." originating at src/Devtools.ts:33
this.ws = new WebSocket(`ws://${host}?name=${this.name}`)
How can I use from an https page?
perhaps changing the websocket protocol to a secure one ?
window.location.protocol === 'https' ? wss : ws
Or it is not as easy? Perhaps, although you change your code, it would need some kind of certificate, etc...
Thanks!
The text was updated successfully, but these errors were encountered:
It would help if the quick fix provided by nireak could be applied. You don't necessarily need to support wss directly in the devtools since one could create a simple websocket proxy (nginx/caddy etc). The proxy is then configured with certificates but pass the websocket unencrypted to devtools.
Hello
When I'm running the app over a secure (https) connection I get an error: "SecurityError: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS." originating at src/Devtools.ts:33
How can I use from an https page?
perhaps changing the websocket protocol to a secure one ?
Or it is not as easy? Perhaps, although you change your code, it would need some kind of certificate, etc...
Thanks!
The text was updated successfully, but these errors were encountered: