admin管理员组文章数量:1336632
I am currently developing a Websocket application on Docker Cloud. When redeploying my application and now I am always getting this error message:
WebSocket connection failed: WebSocket opening handshake was canceled
When looking into the data frame i see a single frame with this data:
(Opcode -1)
When researching the issue, it seems that is related to SSL / Certificates etc. Some solutions include adding self signed certificates. The confusing thing is that the same certificates seem to work for https but not for wss:
Also while testing with other browsers, I see that Safari is working fine. So I am sure that the server is actually running with the correct certificate on the correct port. Only chrome seems to have issues with it.
I know some solutions on stack overflow sugesst to add the certificate manually, but since it works on Safari and it is not a self signed certificate, I would assume it should just work.
I am currently developing a Websocket application on Docker Cloud. When redeploying my application and now I am always getting this error message:
WebSocket connection failed: WebSocket opening handshake was canceled
When looking into the data frame i see a single frame with this data:
(Opcode -1)
When researching the issue, it seems that is related to SSL / Certificates etc. Some solutions include adding self signed certificates. The confusing thing is that the same certificates seem to work for https but not for wss:
Also while testing with other browsers, I see that Safari is working fine. So I am sure that the server is actually running with the correct certificate on the correct port. Only chrome seems to have issues with it.
I know some solutions on stack overflow sugesst to add the certificate manually, but since it works on Safari and it is not a self signed certificate, I would assume it should just work.
Share Improve this question asked Oct 31, 2016 at 15:03 m0cm0c 2,19126 silver badges45 bronze badges1 Answer
Reset to default 5Checking the site against SSLabs shows that the server does not provide all needed parts of the certificate chain but misses a chain certificate:
This server's certificate chain is inplete. Grade capped to B.
...
Chain issues Inplete
...
2 Extra download - Let's Encrypt Authority X3
Once you resolved this issue by properly configuring the server it should work in all browsers. Currently it might work with some browsers only, i.e. if the browser has cached the missing chain certificate from visits to other sites (like Firefox does) or if it works around badly configured servers by downloading missing chain certificates (Chrome).
本文标签: javascriptWebsockets not working in Chrome (wss) “handshake was canceled”Stack Overflow
版权声明:本文标题:javascript - Websockets not working in Chrome (wss): “handshake was canceled” - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742374035a2462800.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论