How to configure Apache to let PHP handle OPTIONS HTTP requests?
- by Robin Berjon
In order to set up a proper test suite for CORS (cross-domain requests) I need to be able to handle the HTTP OPTIONS method directly from script. I therefore have a simple PHP script that detects the OPTIONS method, and reacts accordingly by outputting some specific headers.
The PHP side is not a problem. If I use curl to issue…