F irst of all, let\’s explain that CORS stands for Cross Origin Resource Sharing.
So basically if you were looking for this fix, you know what implies.
Check if mod_headers is enabled
- Check if the mod_headers is enabled, you should be able to accomplish this by simply typing /etc/apache2/mods-enabled and look for the headers.load.
If is not enabled, you need to activate it so we can modify the Response Headers.
Don\’t worry, to enable mod_headers, you simply need to type: Header set Access-Control-Allow-Origin “*”
Allowing Access Control to mod_headers
- You need to go to the /etc/apache2/apache2.conf file.
- In there you have to add the following line: Header set Access-Control-Allow-Origin “*”
- Then just do a sudo service apache2 reload