解决Nginx跨域问题
跨域访问错误提示The 'Access-Control-Allow-Origin' header contains the invalid value '*.phpwebhome.com'. Origin 'http://127.0.0.1' is therefore not allowed access.
修改相关站点nginx配置文件phpwebhome.com.conf server{}中添加允许跨域名访问的域名
server {
add_header 'Access-Control-Allow-Origin' '*.phpwebhome.com';
}
转载请注明:RAIN MAN » 解决Nginx跨域问题
还没有人抢沙发呢~