加cdn 后ws 無法連接。怎么解決
這里詳細(xì)描述問題
用域名部署可以正常ws鏈接發(fā)送消息
域名加上cdn 后無法連接 報錯WebSocket is closed before the connection is established.
直接把cdn開啟ws 進(jìn)入頁面會提示
400 Bad Request
Sec-WebSocket-Key not found.
This is a WebSocket service and can not be accessed via HTTP.
See http://wiki.workerman.net/Error1 for detail.