今天遇到个bug,websocket本地测试没问题,部署到服务器前端告诉我连接失败。。。。
最后发现有配置nginx,nginx配置加入
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
问题解决
websocket本地可以服务器404
最新推荐文章于 2025-03-20 09:36:10 发布
今天遇到个bug,websocket本地测试没问题,部署到服务器前端告诉我连接失败。。。。
最后发现有配置nginx,nginx配置加入
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
问题解决