debug: errors with new lines
This commit is contained in:
parent
5c68cd3f6e
commit
6f76a16f10
|
@ -15,7 +15,7 @@ gzip_vary on;
|
||||||
gzip_comp_level 6;" }}
|
gzip_comp_level 6;" }}
|
||||||
|
|
||||||
# CORS headers based on request methods
|
# CORS headers based on request methods
|
||||||
{{ $cors_headers_options := "
|
{{ $cors_headers_options := '
|
||||||
if ($request_method = 'OPTIONS') {
|
if ($request_method = 'OPTIONS') {
|
||||||
add_header 'Access-Control-Allow-Origin' '$allow_origin' always;
|
add_header 'Access-Control-Allow-Origin' '$allow_origin' always;
|
||||||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
||||||
|
@ -25,7 +25,7 @@ if ($request_method = 'OPTIONS') {
|
||||||
add_header 'Content-Type' 'text/plain; charset=utf-8';
|
add_header 'Content-Type' 'text/plain; charset=utf-8';
|
||||||
add_header 'Content-Length' 0;
|
add_header 'Content-Length' 0;
|
||||||
return 204;
|
return 204;
|
||||||
}" }}
|
}' }}
|
||||||
|
|
||||||
{{ $cors_headers_post := "
|
{{ $cors_headers_post := "
|
||||||
if ($request_method = 'POST') {
|
if ($request_method = 'POST') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user