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

View file

@ -61,13 +61,15 @@ http {
return 204;
}
add_header 'Access-Control-Allow-Origin' 'https://cors-school.nilstrieb.dev';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'GET, POST, DELETE, PUT, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,token,refresh-token,Authorization';
if ($request_method != 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' 'https://cors-school.nilstrieb.dev';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'GET, POST, DELETE, PUT, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,token,refresh-token,Authorization';
proxy_pass http://cors-school-backend:8080/;
proxy_pass http://cors-school-backend:8080/;
}
}
}