Fix consistency (#2537)

Co-authored-by: Phillip Carter <pcarter@fastmail.com>
This commit is contained in:
Joost Lekkerkerker 2023-03-24 18:29:08 +01:00 committed by GitHub
parent 5f66376216
commit 2a00d4fb8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ server {
# Take care of preflight requests
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Max-Age' 1728000;
add_header "Access-Control-Allow-Origin" "name.of.your.website.example.com" always;
add_header 'Access-Control-Allow-Origin' 'name.of.your.website.example.com' always;
add_header 'Access-Control-Allow-Headers' 'Accept,Accept-Language,Content-Language,Content-Type' always;
add_header 'Access-Control-Allow-Credentials' 'true' always;
add_header 'Content-Type' 'text/plain charset=UTF-8';
@ -189,7 +189,7 @@ server {
return 204;
}
add_header "Access-Control-Allow-Origin" "name.of.your.website.example.com" always;
add_header 'Access-Control-Allow-Origin' 'name.of.your.website.example.com' always;
add_header 'Access-Control-Allow-Credentials' 'true' always;
add_header 'Access-Control-Allow-Headers' 'Accept,Accept-Language,Content-Language,Content-Type' always;
proxy_http_version 1.1;