Friday, June 7, 2013

SecurityError: The operation is insecure.

How to resolve this? This error appears if secure HTTP (https://) tries to connect non-secure websocket (ws://) servers.

We tested this issue through below test site across browsers, and found most browsers throw SecurityError
https://www.websocket.org/echo.html

Windows:
IE 9 [no websocket support]
IE 10 [no]
Chrome [ok]
FireFox [no]
Opera [no]

Mac:
Safari [ok]
Chrome [ok]
FireFox [no]
Opera [no]

Firefox (v21) has a flag to control this (network.websocket.allowInsecureFromHTTPS from about:config)


No comments:

Post a Comment