nginx跨域配置
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Origin' 'http://127.0.0.1:8078'; #前端页面访问地址,配置多个浏览器报错:The 'Access-Control-Allow-Origin' header contains multiple values '...', but only one is allowed.
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE';
add_header 'Access-Control-Allow-Headers' 'Origin, X-Requested-With, Content-Type, Accept, xxxToken';
add_header 'Access-Control-Expose-Headers' 'xxxToken';