Nginx配置跨域请求-CSDN博客

网站介绍:文章浏览阅读241次。一、前言记录一下nginx跨域请求的配置,方便后续自己采用二、配置location / { add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS'; add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Reques_nginx配置跨域请求