nginx跨域 在nginx.conf中http中添加 server { listen 80;#nginx端口 location / { root html; index index.html index.htm; add_header 'Access-Control-Allow-Origin' '*'; proxy_pass http://localhost:8088;#本地网站 } location /apis { rewrite ^.+apis/?(.*)</