This commit is contained in:
nora 2022-09-03 16:38:14 +02:00
parent 9560b64a6c
commit a0fbbe11d3

View file

@ -61,6 +61,7 @@ http {
return 204; return 204;
} }
if ($request_method != 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' 'https://cors-school.nilstrieb.dev'; add_header 'Access-Control-Allow-Origin' 'https://cors-school.nilstrieb.dev';
add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'GET, POST, DELETE, PUT, OPTIONS'; add_header 'Access-Control-Allow-Methods' 'GET, POST, DELETE, PUT, OPTIONS';
@ -70,6 +71,7 @@ http {
proxy_pass http://cors-school-backend:8080/; proxy_pass http://cors-school-backend:8080/;
} }
} }
}
server_tokens off; server_tokens off;
} }