ajax跨域出错Request header field content-type is not allowed by Access-Control-Allow-Headers in prefligh
ajax跨域出错as been blocked by CORS policy: Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response.请问是什么问题
网友回复
content-type不被跨域接受
把ajax中的contentType: "application/json;"去掉就好了