Skip to content

Instantly share code, notes, and snippets.

@cnmoro
Last active May 22, 2019 20:33
Show Gist options
  • Save cnmoro/ad230002f5893719430e8ee0752a02c0 to your computer and use it in GitHub Desktop.
Save cnmoro/ad230002f5893719430e8ee0752a02c0 to your computer and use it in GitHub Desktop.
CORS - Apache
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