Remove seemingly extraneous backslashes
This commit is contained in:
parent
c245be775b
commit
e3baf87918
1 changed files with 16 additions and 16 deletions
|
@ -87,36 +87,36 @@ server {
|
||||||
|
|
||||||
## Start CORS here. See http://enable-cors.org/server_nginx.html for comments
|
## Start CORS here. See http://enable-cors.org/server_nginx.html for comments
|
||||||
|
|
||||||
if (\$http_origin ~* (^https?://.*\.$VHOST$)) {
|
if ($http_origin ~* (^https?://.*\.$VHOST$)) {
|
||||||
set \$cors corson;
|
set $cors corson;
|
||||||
}
|
}
|
||||||
if (\$http_origin ~* (^http://(localhost|127.0.0.1)(:[0-9]+)?$)) {
|
if ($http_origin ~* (^http://(localhost|127.0.0.1)(:[0-9]+)?$)) {
|
||||||
set \$cors corson;
|
set $cors corson;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (\$request_method = OPTIONS) {
|
if ($request_method = OPTIONS) {
|
||||||
set \$cors '\${cors}options';
|
set $cors '${cors}options';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (\$request_method = GET) {
|
if ($request_method = GET) {
|
||||||
set \$cors '\${cors}get';
|
set $cors '${cors}get';
|
||||||
}
|
}
|
||||||
if (\$request_method = POST) {
|
if ($request_method = POST) {
|
||||||
set \$cors '\${cors}post';
|
set $cors '${cors}post';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (\$cors = corsonget) {
|
if ($cors = corsonget) {
|
||||||
add_header Access-Control-Allow-Origin \$http_origin;
|
add_header Access-Control-Allow-Origin $http_origin;
|
||||||
add_header Access-Control-Allow-Credentials true;
|
add_header Access-Control-Allow-Credentials true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (\$cors = corsonpost) {
|
if ($cors = corsonpost) {
|
||||||
add_header Access-Control-Allow-Origin \$http_origin;
|
add_header Access-Control-Allow-Origin $http_origin;
|
||||||
add_header Access-Control-Allow-Credentials true;
|
add_header Access-Control-Allow-Credentials true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (\$cors = corsonoptions) {
|
if ($cors = corsonoptions) {
|
||||||
add_header Access-Control-Allow-Origin \$http_origin;
|
add_header Access-Control-Allow-Origin $http_origin;
|
||||||
add_header Access-Control-Allow-Credentials true;
|
add_header Access-Control-Allow-Credentials true;
|
||||||
|
|
||||||
add_header Access-Control-Max-Age 1728000;
|
add_header Access-Control-Max-Age 1728000;
|
||||||
|
|
Loading…
Reference in a new issue