Table of contents of this page:

Welcome to Viblast Documentation

Everything you need to know about Viblast Solutions. For more information contact us.

Viblast Documentation

How to enable CORS on Apache

  1. Enable the headers Apache module
sudo a2enmod headers
  1. Edit you config file (for example: /etc/apache2/sites-enabled/site-config.conf), adding the following lines:
<VirtualHost *:80>
...
Header set Access-Control-Allow-Origin "*"
...
</VirtualHost>

To validate that the headers are set appropriately, you can run:

curl -I [http-end-point]

The result should contain the following line:

...
Access-Control-Allow-Origin: *
...