I\'m using Backbone and the Slim PHP framework. I\'m trying to post information to my API, however Access-Control-Allow-Headers keeps causing me problems...
My conso
Your OPTIONS request should be a 200 returning an empty response. Then the browser will send the real POST request.
Also no need to add OPTIONS in Access-Control-Allow-Methods
header.
It seems your using authentication, why not add Access-Control-Allow-Credentials header too.
For more informations check this code it may be helpful.