Sfoglia il codice sorgente

Update README.md

Caveat about using "*" in CORS
Jaime Gago 11 anni fa
parent
commit
4502ed068d
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      README.md

+ 2 - 1
README.md

@@ -67,6 +67,7 @@ Header set Access-Control-Allow-Origin "*"
 Header set Access-Control-Allow-Methods "GET, OPTIONS"
 Header set Access-Control-Allow-Methods "GET, OPTIONS"
 Header set Access-Control-Allow-Headers "origin, authorization, accept"
 Header set Access-Control-Allow-Headers "origin, authorization, accept"
 ```
 ```
+Note that using "\*" leaves your graphite instance quite open so you might want to consider using "http://my.graphite-dom.ain" in place of "\*"
 
 
 If your Graphite web is proteced by basic authentication, you have to enable the HTTP verb OPTIONS, origin
 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:
 (no wildcards are allowed in this case) and add Access-Control-Allow-Credentials. This looks like the following for Apache:
@@ -106,4 +107,4 @@ Clone repository:
 This software is based on the great log dashboard [kibana](https://github.com/elasticsearch/kibana).
 This software is based on the great log dashboard [kibana](https://github.com/elasticsearch/kibana).
 
 
 # License
 # License
-Grafana is distributed under Apache 2.0 License.
+Grafana is distributed under Apache 2.0 License.