Sfoglia il codice sorgente

remove all headers when proxying the analytics request

Tim Alby 8 anni fa
parent
commit
7a9d52b0f6

+ 3 - 0
services/web/app/coffee/Features/Analytics/AnalyticsProxy.coffee

@@ -11,6 +11,9 @@ module.exports =
 				proxyReqPathResolver: (req) ->
 					requestPath = URL.parse(req.url).path
 					"#{basePath}#{requestPath}"
+				proxyReqOptDecorator: (proxyReqOpts, srcReq) ->
+					proxyReqOpts.headers = {} # unset all headers
+					proxyReqOpts
 			)
 		else
 			(req, res, next) ->