From f6ba577cf47b25ae20cc13b6e2aee5b9fa91657f Mon Sep 17 00:00:00 2001 From: Andrew Rodgers Date: Fri, 20 Jun 2014 03:00:31 +0000 Subject: [PATCH] Revert "updated nginx conf examples for graphite CORS configuration" This reverts commit 9edaa407f2444ab3bcadd1c53a8e4864bb6e97e1. --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 72062b0c1fe..70f23a624ed 100644 --- a/README.md +++ b/README.md @@ -95,8 +95,6 @@ Header set Access-Control-Allow-Credentials true ``` And in nginx: ``` -auth_basic "Restricted"; -auth_basic_user_file /path/to/my/htpasswd/file; if ($http_origin ~* (https?://[^/]*\.somedomain\.com(:[0-9]+)?)) { #Test if request is from allowed domain, you can use multiple if set $cors "true"; #statements to allow multiple domains, simply setting $cors to true in each one. }