Can't load debug build over https (upgrade websocket to secure) #2435
Labels
P1
A high priority bug; for example, a single project is unusable or has many test failures
package:dwds
triaged
The debug builds use insecure websockets to communicate with the debugger. I setup an nginx proxy to serve my build over https, to enable APIs to set secure cookies.
Serving the page over https means insecure protocols are not allowed but the debugger is connecting to ws:// insecure websockets, crashing the app and causing the loading bar to run forever.
The browser error message is:
The page at 'https://site.local/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://site.local:44444/$dwdsSseHandler'. This request has been blocked; this endpoint must be available over WSS.
If supporting WSS is too much (because of certificates or something), could we get an argument to configure the debugger endpoint like:
--debug-dart-url wss://site.local/$dwdsSseHandler
I would then configure nginx proxy wss://site.local requests to ws://site.local:44444
The text was updated successfully, but these errors were encountered: