On Wed, Aug 08, 2012 at 11:05:46AM +0200, Aleksandar L. wrote:
RewriteBase /interfaces
Header set Access-Control-Allow-Origin *
but when the php request is handled the ‘location /interfaces {…}’
does not match any more,
of course.
How can I add the header to the reply after the php is executed?!
You have to add headers in the location where you pass requests to
php. And you may need to add another location if you don’t want to
add headers to all responses from php. Something like this should
be fine: