fix(proxy): prevent from passing auth tokens to proxy destination
This commit is contained in:
parent
dfe30d7f5e
commit
91c70a51a0
1 changed files with 4 additions and 0 deletions
|
@ -34,6 +34,10 @@ http
|
|||
return
|
||||
}
|
||||
|
||||
delete req.headers.authorization
|
||||
delete req.headers['x-auth-token']
|
||||
delete req.headers['x-auth-offline-token']
|
||||
|
||||
const target = (req.url as string).slice(1)
|
||||
req.url = target
|
||||
proxy.web(req, res, {
|
||||
|
|
Loading…
Reference in a new issue