Live: document allowed_origins (#36433) (#36495)

(cherry picked from commit e60950a8c7)

Co-authored-by: Alexander Emelin <frvzmb@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2021-07-07 10:56:43 -07:00
committed by GitHub
co-authored by Alexander Emelin
parent 2671c7d6cd
commit 18c547d695
2 changed files with 26 additions and 0 deletions
@@ -1508,6 +1508,23 @@ Refer to [Grafana Live configuration documentation]({{< relref "../live/configur
0 disables Grafana Live, -1 means unlimited connections.
### allowed_origins
> **Note**: Available in Grafana v8.0.4 and later versions.
The `allowed_origins` option is a comma-separated list of additional origins (`Origin` header of HTTP Upgrade request during WebSocket connection establishment) that will be accepted by Grafana Live.
If not set (default), then the origin is matched over [root_url]({{< relref "#root_url" >}}) which should be sufficient for most scenarios.
Origin patterns support wildcard symbol "*".
For example:
```ini
[live]
allowed_origins = "https://*.example.com"
```
<hr>
## [plugin.grafana-image-renderer]