Nginx配置跨域请求Access-Control-Allow-Origin
出现跨域错误No 'Access-Control-Allow-Origin' header is present on the requested resource
的时候,需要给Nginx配置响应头参数
解决方案
Nginx配置
1 | location / { |
出现跨域错误No 'Access-Control-Allow-Origin' header is present on the requested resource
的时候,需要给Nginx配置响应头参数
Nginx配置
1 | location / { |