解决同域Nginx ajax 请求跨域的问题

在nginx.conf的根server  location上添加以下配置html location / { if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST,
相关文章
相关标签/搜索