Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
okeanos-LoD
Commits
9435e726
Commit
9435e726
authored
Nov 10, 2015
by
Ioannis Tsafaras
Browse files
Accept API requests from external ip address
parent
207565f0
Changes
1
Show whitespace changes
Inline
Side-by-side
webapp/ansible/roles/service-vm/templates/lambda-service.conf.j2
View file @
9435e726
...
...
@@ -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_hostname }}.vm.okeanos.grnet.gr:443|{{ 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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment