Request header field Content-Type is not allowed by Access-Control-Allow-Headers跨域
跨域错误提示:
XMLHttpRequest cannot load http://120.78.191.xxx/xxx.php. Request header field Content-Type is not allowed by Access-Control-Allow-Headers in preflight response.
解决方案:
例如php服务端程序设置头:
hea...
原创
2018-08-17 01:14:35 ·
539 阅读 ·
0 评论