Answer the question
In order to leave comments, you need to log in
htaccess not working?
It's all on Windows.
Added to \Apache24\conf\httpd.conf
<Directory "${SRVROOT}/htdocs/www/test/site">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Test.
<FilesMatch "\.(json|php)$">
Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"
</FilesMatch>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question