To enable CORS in apache, add following in VirtualHost or .htaccess
1 |
Header set Access-Control-Allow-Origin "*" |
If your apache installation don’t have mod_headers installed, you need it enabled with
1 2 |
a2enmod headers systemctl restart apache2 |