debug: errors with new lines

This commit is contained in:
Stepan Vladovskiy 2023-10-11 09:09:19 -03:00
parent 5c68cd3f6e
commit 6f76a16f10

View File

@ -15,7 +15,7 @@ gzip_vary on;
gzip_comp_level 6;" }}
# CORS headers based on request methods
{{ $cors_headers_options := "
{{ $cors_headers_options := '
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '$allow_origin' always;
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-Length' 0;
return 204;
}" }}
}' }}
{{ $cors_headers_post := "
if ($request_method = 'POST') {