mirror of
https://github.com/KevinMidboe/nginx.git
synced 2025-10-29 17:50:26 +00:00
Replaced all instances of add_header with more_set_headers
This commit is contained in:
@@ -5,7 +5,7 @@ server {
|
||||
|
||||
server_name castdeck.schleppe.cloud;
|
||||
|
||||
add_header Upgrading Connection;
|
||||
more_set_headers Upgrading Connection;
|
||||
return 302 https://$host$request_uri;
|
||||
}
|
||||
|
||||
@@ -24,9 +24,9 @@ server {
|
||||
resolver 10.0.0.72;
|
||||
proxy_pass http://castdeck.schleppe:80;
|
||||
|
||||
add_header 'Access-Control-Allow-Origin' '*';
|
||||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
||||
add_header 'Access-Control-Allow-Headers' 'Content-Type';
|
||||
more_set_headers 'Access-Control-Allow-Origin' '*';
|
||||
more_set_headers 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
||||
more_set_headers 'Access-Control-Allow-Headers' 'Content-Type';
|
||||
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user