mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-17 03:32:13 +00:00
remove all headers when proxying the analytics request
This commit is contained in:
parent
945ef25ef5
commit
7a9d52b0f6
1 changed files with 3 additions and 0 deletions
|
@ -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) ->
|
||||
|
|
Loading…
Reference in a new issue