mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 14:52:16 +08:00
feat(dataproxy): remove 'SetCookie' from reponse
set cookie could potentialll leak information about the datasource if in proxy mode. closes #3845
This commit is contained in:
@ -103,5 +103,6 @@ func ProxyDataSourceRequest(c *middleware.Context) {
|
||||
proxy := NewReverseProxy(ds, proxyPath, targetUrl)
|
||||
proxy.Transport = dataProxyTransport
|
||||
proxy.ServeHTTP(c.Resp, c.Req.Request)
|
||||
c.Resp.Header().Del("Set-Cookie")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user