问题-前端页面报错:The 'Access-Control-Allow-Origin' header contains multiple values'*, *', but only one is allowed.
原因分析:
可能是重复配置了跨域(nginx、代码)
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
add_header Access-Control-Allow-Headers X-Requested-With;
处理:
去掉多余的即可