From e3baf879183b5d67f4af0944643b52be199c34d7 Mon Sep 17 00:00:00 2001 From: Daoud Clarke Date: Sun, 19 Jun 2022 11:27:37 +0100 Subject: [PATCH] Remove seemingly extraneous backslashes --- nginx.conf.sigil | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/nginx.conf.sigil b/nginx.conf.sigil index fa5211b..c0bca44 100644 --- a/nginx.conf.sigil +++ b/nginx.conf.sigil @@ -87,36 +87,36 @@ server { ## Start CORS here. See http://enable-cors.org/server_nginx.html for comments - if (\$http_origin ~* (^https?://.*\.$VHOST$)) { - set \$cors corson; + if ($http_origin ~* (^https?://.*\.$VHOST$)) { + set $cors corson; } - if (\$http_origin ~* (^http://(localhost|127.0.0.1)(:[0-9]+)?$)) { - set \$cors corson; + if ($http_origin ~* (^http://(localhost|127.0.0.1)(:[0-9]+)?$)) { + set $cors corson; } - if (\$request_method = OPTIONS) { - set \$cors '\${cors}options'; + if ($request_method = OPTIONS) { + set $cors '${cors}options'; } - if (\$request_method = GET) { - set \$cors '\${cors}get'; + if ($request_method = GET) { + set $cors '${cors}get'; } - if (\$request_method = POST) { - set \$cors '\${cors}post'; + if ($request_method = POST) { + set $cors '${cors}post'; } - if (\$cors = corsonget) { - add_header Access-Control-Allow-Origin \$http_origin; + if ($cors = corsonget) { + add_header Access-Control-Allow-Origin $http_origin; add_header Access-Control-Allow-Credentials true; } - if (\$cors = corsonpost) { - add_header Access-Control-Allow-Origin \$http_origin; + if ($cors = corsonpost) { + add_header Access-Control-Allow-Origin $http_origin; add_header Access-Control-Allow-Credentials true; } - if (\$cors = corsonoptions) { - add_header Access-Control-Allow-Origin \$http_origin; + if ($cors = corsonoptions) { + add_header Access-Control-Allow-Origin $http_origin; add_header Access-Control-Allow-Credentials true; add_header Access-Control-Max-Age 1728000;