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:
bergquist
2016-01-29 23:14:21 +01:00
parent 9ec3216ab0
commit 34eb5acee7

View File

@ -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")
}
}