Skip to main content

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
Sebastián Becerra

Trabajo con tecnologías web en arquitecturas Cloud. Me gusta descubrir y aprender nuevas tecnologías en Layouts (CSS, Sass, Less), Frameworks de Desarrollo (JQuery, AngularJS, Ionic) y plataformas Web (Wordpress, Joomla, Prestashop). He colaborado con diferentes proyectos de software libre y código abierto con fines sociales. Además participé en distintos eventos TI exponiendo sobre comunidades y educando sobre tecnologías Web.

Leave a Reply