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.