nginx websocket socket.io 400 错误
在location中加入:
proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";
然后重启nginx即可
参考链接:
https://ask.csdn.net/questions/249716
https://www.cnblogs.com/pangyangqi/p/9711317.html