Is there anyway in Zend Framework 2 to allow CORS on my API?
I have already allowed all origins header("Access-Control-Allow-Origin: *");
Every time I send a POST
request with headers the server responds with 405.
On my access log I see the the request is actually OPTIONS
So to start with your php script should do these checks:
Once you do that CORS will be enabled.