Error: Content-Type is not allowed by Access-Control-Allow-Headers

前端 未结 6 1674
旧巷少年郎
旧巷少年郎 2020-12-23 12:20

I am getting this error in Chrome when trying to send an ajax request:

Content-Type is not allowed by Access-Control-Allow-Headers

Everythi

6条回答
  •  自闭症患者
    2020-12-23 13:10

    I had the same problem and I solved it by adding the following header: Access-Control-Allow-Headers: content-type

提交回复
热议问题