server { listen 80; server_name yourdomain.com; location / { # 允许跨域请求 add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'Origin, X-Requested-With, Content-Type, Accept, c-xxxx-id';
标签:Control,head,跨域,Access,header,add,Allow From: https://www.cnblogs.com/gaoyuechen/p/17617344.html