webdev icon indicating copy to clipboard operation
webdev copied to clipboard

Unhandled error detected in the injected client.js script.

Open mademma99 opened this issue 3 weeks ago • 3 comments

Unhandled error detected in the injected client.js script.

You can disable this script in webdev by passing --no-injected-client if it is preventing your app from loading, but note that this will also prevent all debugging and hot reload/restart functionality from working.

The original error is below, please file an issue at https://github.com/dart-lang/webdev/issues/new and attach this output:

WebSocketChannelException: SecurityError: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS

mademma99 avatar Nov 19 '25 15:11 mademma99