Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SecurityError when served with https #17

Open
ChaoticWyrme opened this issue Nov 17, 2018 · 0 comments
Open

SecurityError when served with https #17

ChaoticWyrme opened this issue Nov 17, 2018 · 0 comments
Assignees
Labels
webui Issues and Feature requests relating to the Web UI

Comments

@ChaoticWyrme
Copy link
Contributor

When a page served over HTTPS tries to access a non secure websocket connection (i.e. ws:// instead of wss://) the browser throws a SecurityError.
You can disable this behavior in firefox with the flag network.websocket.allowInsecureFromHTTPS, but it the only way to solve it reliably is to serve the page over HTTP.

In cc5c354 I added some code to check for the error whenever a websocket is initiated and automatically change the protocol to HTTP, but that only happens when you choose a ClockIOT.

For now, I'm going to add some code to wyolum.com's .htaccess file so that it automatically redirects HTTPS to HTTP on the UI page. http://wyolum.com/clockiot/UI

@ChaoticWyrme ChaoticWyrme self-assigned this Nov 17, 2018
@ChaoticWyrme ChaoticWyrme added the webui Issues and Feature requests relating to the Web UI label Nov 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
webui Issues and Feature requests relating to the Web UI
Projects
None yet
Development

No branches or pull requests

1 participant