remove all headers when proxying the analytics request

This commit is contained in:
Tim Alby 2018-01-11 19:04:41 +02:00
parent 945ef25ef5
commit 7a9d52b0f6

View file

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