Commit 34eb5ace by bergquist

feat(dataproxy): remove 'SetCookie' from reponse

set cookie could potentialll leak information about the
datasource if in proxy mode.

closes #3845
parent 9ec3216a
......@@ -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")
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment