Просмотр исходного кода

Revert "updated nginx conf examples for graphite CORS configuration"

This reverts commit be03f6adb6e2cf7ea88388f1b6f19dd301a030d4.
Andrew Rodgers 11 лет назад
Родитель
Сommit
a0c3f99d80
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -99,8 +99,8 @@ if ($http_origin ~* (https?://[^/]*\.somedomain\.com(:[0-9]+)?)) {  #Test if req
     set $cors "true";                                               #statements to allow multiple domains, simply setting $cors to true in each one.
 }
 if ($cors = 'true') {
-    add_header  Access-Control-Allow-Origin $http_origin;           #this mirrors back whatever domain the request came from as authorized, as
-    add_header  "Access-Control-Allow-Credentials" "true";          #as long as it matches one of your if statements
+    add_header  Access-Control-Allow-Origin $http_origin;
+    add_header  "Access-Control-Allow-Credentials" "true";
     add_header  "Access-Control-Allow-Methods" "GET, OPTIONS";
     add_header  "Access-Control-Allow-Headers" "Authorization, origin, accept";
 }