解决nginx转发之后swagger文档的请求跨域问题

location / {
proxy_set_header Host $host:$server_port;  //加上该头部
proxy_pass http://ip:5555;
}

 

posted @ 2020-05-14 17:33  fishness  阅读(960)  评论(0)    收藏  举报