CORS on Apache2 on Ubuntu 12.04
So, I followed directions from various sources on how to enable CORS on Apache2.
Did I do it right? I put this in domain.conf:
<Directory /mnt/volume1/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "GET, POST, OPTIONS"
</Directory>
But when I refresh the JSON page with the script on my desktop, I still get the error: No header "Access-Control-Allow-Origin".
I don't see any access control information whatsoever in the headers when you view the page using the Chrome Developer Tools Network.
UPDATE / NOTES: Ive followed http://enable-cors.org/index.html to be sure I did it right and it still doesn't work as expected. Is there something else elsewhere? I have apache mod_headers installed.
+3
source to share
No one has answered this question yet
Check out similar questions: