Cross-Origin Request Headers(CORS) with PHP headers

后端 未结 11 1372
情书的邮戳
情书的邮戳 2020-11-21 11:13

I have a simple PHP script that I am attempting a cross-domain CORS request:



        
11条回答
  •  梦毁少年i
    2020-11-21 11:37

    Access-Control-Allow-Headers does not allow * as accepted value, see the Mozilla Documentation here.

    Instead of the asterisk, you should send the accepted headers (first X-Requested-With as the error says).

提交回复
热议问题