Skip to content
Snippets Groups Projects
Commit d1d5e448 authored by Christian Boettcher's avatar Christian Boettcher
Browse files

set cors headers for accepted domains

parent 85c94f95
No related branches found
No related tags found
No related merge requests found
Pipeline #95001 failed
if ($http_origin ~* (.*\.kfa-juelich.de|.*\.fz-juelich.de|.*\.eflows4hpc.eu)) {
add_header 'Access-Control-Allow-Origin' "$http_origin";
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, DELETE, PUT';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Headers' 'User-Agent,Keep-Alive,Content-Type';
}
if ($request_method = OPTIONS) {
return 204;
}
location ~ \.(html|css|js|ico|jpg|jpeg|png|webp)$ {
if ($request_method = OPTIONS) {
return 204;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment