Commit 9435e726 authored by Ioannis Tsafaras's avatar Ioannis Tsafaras
Browse files

Accept API requests from external ip address

parent 207565f0
......@@ -55,7 +55,8 @@
Allow from all
Header always set Access-Control-Allow-Origin: "https://{{ ansible_hostname }}"
SetEnvIf Origin "https://({{ ansible_hostname }}|{{ ansible_all_ipv4_addresses[0] }})$" 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