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
admin.example.com
I use this headers and its work for me
header('content-type: application/json; charset=utf-8'); header("access-control-allow-origin: *");