且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

WebSocket服务器不适用于SSL

更新时间:2023-02-23 15:29:24

不良做法加上糟糕的伐木习惯是导致问题的原因。

Bad practices combined with bad logging habits were the cause of the problem.

在打开新连接时,执行了一项检查以验证请求的来源,该请求已在那里硬编码 http:// 并且因为我在请求它从安全页面( https:// ),检查不再通过,连接也不可能。

On opening a new connection there was a check performed to validate the origin of the request which had hardcoded http:// in there and since I was requesting it from a secure page (https://) the check no longer passed and connections were impossible.