diff --git a/README.md b/README.md index d3f1ca43ccf..74f8409c644 100644 --- a/README.md +++ b/README.md @@ -56,8 +56,12 @@ Header set Access-Control-Allow-Methods "GET, OPTIONS" Header set Access-Control-Allow-Headers "origin, authorization, accept" ``` -If your Graphite web is proteced by basic authentication, you have to enable the HTTP verb OPTIONS. This looks like the following for Apache: +If your Graphite web is proteced by basic authentication, you have to enable the HTTP verb OPTIONS, origin +(no wildcards are allowed in this case) and add Access-Control-Allow-Credentials. This looks like the following for Apache: ``` +Header set Access-Control-Allow-Origin "http://mygrafana.com:5656" +Header set Access-Control-Allow-Credentials true + AuthName "graphs restricted" AuthType Basic @@ -68,13 +72,6 @@ If your Graphite web is proteced by basic authentication, you have to enable the ``` -If you use basic authentication you need to set **Access-Control-Allow-Origin and add **Access-Control-Allow-Credentials. Example: -``` -Header set Access-Control-Allow-Origin "http://mygrafana.com:5656" -Header set Access-Control-Allow-Credentials true -``` - - # Roadmap - Improve and refine the target parser and editing - Improve graphite import feature