Browse Source

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

marcv81 9 năm trước cách đây
mục cha
commit
150d21800c
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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}