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

前端 未结 3 685
不知归路
不知归路 2021-02-01 08:18

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 09:00

    I use this headers and its work for me

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

提交回复
热议问题