I've added the following at the top of my .htaccess file:
<IfModule mod_headers.c>
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Headers "Content-Type, Authorization"
Header always set Access-Control-Allow-Methods "GET,PUT,POST,DELETE"
Header always set Access-Control-Allow-Credentials true
</IfModule>
In order to allow a subdomain-served login screen to do an AJAX Request to the main domain. It works on localhost, but not on the actual server. I've googled around quite a lot but there doesn't seem to be a solution for this. I've already checked through SSH if apache mod_headers was loaded, and the LoadModule line is there on the httpd.conf file.
<IfModule>
wrapper. Any error? Are.htaccess
overrides enabled?.htaccess
AllowOverride
directive needs to be set in the server config before these directives in.htaccess
will do anything.