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
{{ message }}
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
Error Message: auto-reload.js:69 Mixed Content: The page at 'https://........./' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://..........:9485/'. This request has been blocked; this endpoint must be available over WSS.
Solution: if(window.location.protocol === 'https:'){ var connection = new WebSocket('wss://' + host + ':' + port); } else if (window.location.protocol == 'http:'){ var connection = new WebSocket('wss://' + host + ':' + port); }
The text was updated successfully, but these errors were encountered:
I have implemented the code above, now instead of getting "this endpoint must be available over WSS" I am getting time outs. I have modified the config to point to my key/cert files on the server.
@clarknelson I came across the same issue this evening - turns out the documentation on the master branch is not correct for the latest tagged release (v2.7.1), which states that there is a param called forcewss that can be used in the plugin config section of your brunch-config.js (or similar). This parameter is only available in the master branch, so I ran into the same issue using version 2.7.1 which is what get installed via package manager
- it performs a check against this.ssl which is set based on whether you have specificed the keyPath & certPath options in your brunch config. If you set those paths to your valid ssl cert then auto-reload correctly switches ws to wss and corrects the https errors
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Offending line:
auto-reload-brunch/vendor/auto-reload.js
Line 69 in b867822
Error Message:
auto-reload.js:69 Mixed Content: The page at 'https://........./' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://..........:9485/'. This request has been blocked; this endpoint must be available over WSS.
Solution:
if(window.location.protocol === 'https:'){ var connection = new WebSocket('wss://' + host + ':' + port); } else if (window.location.protocol == 'http:'){ var connection = new WebSocket('wss://' + host + ':' + port); }
The text was updated successfully, but these errors were encountered: