mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-17 01:55:10 +01:00
hmm
This commit is contained in:
parent
9560b64a6c
commit
a0fbbe11d3
1 changed files with 7 additions and 5 deletions
|
|
@ -61,6 +61,7 @@ http {
|
|||
return 204;
|
||||
}
|
||||
|
||||
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';
|
||||
|
|
@ -70,6 +71,7 @@ http {
|
|||
proxy_pass http://cors-school-backend:8080/;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
server_tokens off;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue