erlenmeyer316
10/26/2017 - 2:45 PM

CORS on Apache

To add the CORS authorization to the header using Apache, simply add the following line inside either the <Directory>, <Location>, <Files> or <VirtualHost> sections of your server config (usually located in a *.conf file, such as httpd.conf or apache.conf), or within a .htaccess file:


  Header set Access-Control-Allow-Origin "*"