mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-04 14:49:01 +02:00
Merge pull request #257 from sharelatex/ta-remove-proxy-headers
Remove headers when proxying analytics request
This commit is contained in:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user