python-openimu icon indicating copy to clipboard operation
python-openimu copied to clipboard

Some browser can't access ws protocol under https

Open m5horton opened this issue 8 years ago • 5 comments

Example is firefox

m5horton avatar Jun 25 '18 22:06 m5horton

This fixes firefox for this issue: https://stackoverflow.com/questions/11768221/firefox-websocket-security-issue

No fix is available in Safari https://stackoverflow.com/questions/45572440/how-to-access-an-insecure-websocket-from-a-secure-website

m5horton avatar Jun 25 '18 23:06 m5horton

The solution for firefox: about:config->click conntinue->network.websocket.allowInsecureFromHTTPS->double click

fengliu00 avatar Jul 30 '18 18:07 fengliu00

Developers.aceinna.com doesn't support Safari.

safari_web_issue

fengliu00 avatar Jul 30 '18 18:07 fengliu00

I added a solution for Firefox and Safari. The site will use wss protocol to listen message from python-openimu. And user should implement a websocket server that supports wss.

There is a tool about locally-trusted certificates, it helps to setup local wss server. https://github.com/FiloSottile/mkcert

yiweisong avatar Sep 26 '19 02:09 yiweisong

Resolved for all except Safari.

m5horton avatar Dec 17 '19 00:12 m5horton