debug: errors with new lines
This commit is contained in:
@@ -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') {
|
||||
|
Reference in New Issue
Block a user