Skip to content

Commit

Permalink
Remove trusted_hosts argument from middleware addition
Browse files Browse the repository at this point in the history
  • Loading branch information
kbevers committed Nov 6, 2024
1 parent 6b3cc90 commit 2e81631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webproj/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def token_query_param(
docs_url="/documentation",
dependencies=[Depends(token_header_param), Depends(token_query_param)],
)
app.add_middleware(ProxyHeaderMiddleware, trusted_hosts="127.0.0.1")
app.add_middleware(ProxyHeaderMiddleware)

_DATA = Path(__file__).parent / Path("data.json")

Expand Down

0 comments on commit 2e81631

Please sign in to comment.