Last active
May 22, 2019 20:33
-
-
Save cnmoro/ad230002f5893719430e8ee0752a02c0 to your computer and use it in GitHub Desktop.
CORS - Apache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Change in /etc/apache2/apache2.conf | |
<Directory /var/www/*> | |
Order Allow,Deny | |
Allow from all | |
AllowOverride all | |
Header set Access-Control-Allow-Origin "*" | |
</Directory> | |
Add/activate module | |
a2enmod headers | |
Restart service | |
/etc/init.t/apache2 restart | |
-- | |
Fonte: https://stackoverflow.com/questions/29150384/how-to-allow-cross-domain-request-in-apache2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment