Ver Fonte

Do not pass Authorization header in Grafana.net proxy (#6243)

marcv81 há 9 anos atrás
pai
commit
150d21800c
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      pkg/api/gnetproxy.go

+ 1 - 0
pkg/api/gnetproxy.go

@@ -36,6 +36,7 @@ func ReverseProxyGnetReq(proxyPath string) *httputil.ReverseProxy {
 		// clear cookie headers
 		req.Header.Del("Cookie")
 		req.Header.Del("Set-Cookie")
+		req.Header.Del("Authorization")
 	}
 
 	return &httputil.ReverseProxy{Director: director}