PHP header not working for Access-Control-Allow-Origin

前端 未结 3 2076
傲寒
傲寒 2021-02-01 08:30

I am using the jQuery File Upload plugin by Blueimp to upload images to a server. The problem is, the sending server is admin.example.com, and the receiving server

3条回答
  •  名媛妹妹
    2021-02-01 08:50

    I use this headers and its work for me

    header('content-type: application/json; charset=utf-8');
    header("access-control-allow-origin: *");
    

提交回复
热议问题