Browse Source

Added documentation in Readme.md for how to configure apache2 with Basic Auth and CORS

Torkel Odegaard 12 năm trước cách đây
mục cha
commit
d21bd796f8
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 7 0
      README.md

+ 7 - 0
README.md

@@ -68,6 +68,13 @@ If your Graphite web is proteced by basic authentication, you have to enable the
 </Location>
 ```
 
+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