Fix consistency (#2537)
Co-authored-by: Phillip Carter <pcarter@fastmail.com>
This commit is contained in:
parent
5f66376216
commit
2a00d4fb8b
|
|
@ -181,7 +181,7 @@ server {
|
||||||
# Take care of preflight requests
|
# Take care of preflight requests
|
||||||
if ($request_method = 'OPTIONS') {
|
if ($request_method = 'OPTIONS') {
|
||||||
add_header 'Access-Control-Max-Age' 1728000;
|
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-Headers' 'Accept,Accept-Language,Content-Language,Content-Type' always;
|
||||||
add_header 'Access-Control-Allow-Credentials' 'true' always;
|
add_header 'Access-Control-Allow-Credentials' 'true' always;
|
||||||
add_header 'Content-Type' 'text/plain charset=UTF-8';
|
add_header 'Content-Type' 'text/plain charset=UTF-8';
|
||||||
|
|
@ -189,7 +189,7 @@ server {
|
||||||
return 204;
|
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-Credentials' 'true' always;
|
||||||
add_header 'Access-Control-Allow-Headers' 'Accept,Accept-Language,Content-Language,Content-Type' always;
|
add_header 'Access-Control-Allow-Headers' 'Accept,Accept-Language,Content-Language,Content-Type' always;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue