Wednesday, October 2, 2013

Access-Control-Allow-Headers error

Should not be done separately:

header('Access-Control-Allow-Headers: Content-Type, application/json');
header('Access-Control-Allow-Headers: X-Requested-With'); 


All access should be included on one setting:
header('Access-Control-Allow-Headers: Content-Type, application/json, X-Requested-With');

No comments:

Post a Comment