Firefox Websocket security issue

后端 未结 6 872
借酒劲吻你
借酒劲吻你 2020-12-02 15:36

We have a websocket server on port 8080 setup on a Linode box. Chrome and Opera work just fine. Firefox however complains that the operation is insecure.

\"The opera

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 16:08

    Had the same problem and attempted to fix by changing network.websocket.allowInsecureFromHTTPS in about:config which did not work.

    Ended up finding this post => Unhandled Rejection (SecurityError): The operation is insecure. On a fresh create-react-app project

    Changing this in index.js ended up working for me

    serviceWorker.register();
    //serviceWorker.unregister();
    

提交回复
热议问题