mirror of
https://github.com/grafana/grafana.git
synced 2025-01-09 23:53:25 -06:00
updated nginx conf examples for graphite CORS configuration
This commit is contained in:
parent
be03f6adb6
commit
9edaa407f2
@ -95,6 +95,8 @@ 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.
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user