mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 04:22:13 +08:00
Add custom header with grafana user and a config switch for it
This commit is contained in:
@ -31,7 +31,7 @@ func (hs *HTTPServer) ProxyDataSourceRequest(c *m.ReqContext) {
|
||||
// macaron does not include trailing slashes when resolving a wildcard path
|
||||
proxyPath := ensureProxyPathTrailingSlash(c.Req.URL.Path, c.Params("*"))
|
||||
|
||||
proxy := pluginproxy.NewDataSourceProxy(ds, plugin, c, proxyPath)
|
||||
proxy := pluginproxy.NewDataSourceProxy(ds, plugin, c, proxyPath, hs.Cfg)
|
||||
proxy.HandleRequest()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user