We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2093509 commit f597204Copy full SHA for f597204
internal/middleware/proxy.go
@@ -64,6 +64,10 @@ func Proxy() gin.HandlerFunc {
64
defaultDirector := proxy.Director
65
proxy.Director = func(req *http.Request) {
66
defaultDirector(req)
67
+ // drop proxy identifier from upstream query to avoid leaking internal ids
68
+ query := req.URL.Query()
69
+ query.Del("x_node_id")
70
+ req.URL.RawQuery = query.Encode()
71
req.Header.Del("X-Node-ID")
72
req.Header.Set("X-Node-Secret", node.Token)
73
}
0 commit comments