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
CorsSlim helped me. https://github.com/palanik/CorsSlim
"*", "exposeHeaders" => array("Content-Type", "X-Requested-With", "X-authentication", "X-client"), "allowMethods" => array('GET', 'POST', 'PUT', 'DELETE', 'OPTIONS')); $cors = new \CorsSlim\CorsSlim($corsOptions); $app->add($cors);