location /block {
proxy_pass https://block.baidu.com/;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header X-Real-IP $remote_addr;
}
nginx设置跨域
最新推荐文章于 2024-07-26 17:12:54 发布
location /block {
proxy_pass https://block.baidu.com/;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header X-Real-IP $remote_addr;
}