Commit 7e65ce76 authored by Makis Tsantekidis's avatar Makis Tsantekidis
Browse files

Merge pull request #225 from ioantsaf/cors-external-ip

Accept API requests from external ip address
parents 91619b95 dd1fb460
......@@ -55,7 +55,8 @@
Allow from all
</Directory>
Header always set Access-Control-Allow-Origin: "https://{{ ansible_hostname }}.vm.okeanos.grnet.gr:443"
SetEnvIf Origin "https://({{ ansible_default_ipv4.address }})$" AccessControlAllowOrigin=$0
Header always set Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
Header always set Access-Control-Allow-Credentials: true
Header always set Access-Control-Allow-Methods: "GET, POST, DELETE, OPTIONS"
Header always set Access-Control-Allow-Headers "Authorization"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment