no one says you should also have mod_headers , so if still not working, try the following:
(the following tips work on Ubuntu, do not know about other distributions)
you can check the list of loaded modules with
apache2ctl -M
to enable mod_headers you can use
a2enmod headers
of course, after any changes to Apache you should restart it:
/etc/init.d/apache2 restart
Then you can use
<IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule>
And if mod_headers is not active, this line will do nothing. You can try to skip the if clause and simply add the Header set Access-Control-Allow-Origin "*" to your configuration, then it should throw an error during startup if mod_headers is not active.
Lukas Dec 08 '13 at 11:47 2013-12-08 11:47
source share