🌚

WebSocket: Connection Header Value Must Contain Upgrade

Posted at — Feb 11, 2017
#websocket #编程

用NGINX反向代理实现WSS后,创建连接时报错:

Error during WebSocket handshake: ‘Connection’ header value must contain ‘Upgrade’

根据官方文档,NGINX从1.3.13开始才支持这个特性,所以解决方法是升级到最新版。