Fix: strip butler auth header before forwarding to backends
This commit is contained in:
parent
b1aa6671e2
commit
b926732915
1 changed files with 2 additions and 2 deletions
4
app.py
4
app.py
|
|
@ -98,8 +98,8 @@ async def proxy(service: str, path: str, request: Request, _=Depends(_verify)):
|
|||
headers = dict(request.headers)
|
||||
cookies = {}
|
||||
|
||||
# Remove hop-by-hop headers
|
||||
for h in ["host", "content-length", "transfer-encoding"]:
|
||||
# Remove hop-by-hop headers and butler auth (replaced by service auth below)
|
||||
for h in ["host", "content-length", "transfer-encoding", "authorization"]:
|
||||
headers.pop(h, None)
|
||||
|
||||
# Build auth
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue