Nginx反向代理WebSocket响应403的解决办法

原文
加一条 proxy_set_header Origin "";

http {
    server {
        listen 8020;
        location /ws {
            proxy_pass http://some-ip:8080;
            proxy_set_header Origin "";
        }
    }
}

猜你喜欢

转载自blog.csdn.net/hqweay/article/details/81231280