From 2e816314095587a1272ae251ec182b292ba6d568 Mon Sep 17 00:00:00 2001 From: Kristian Evers Date: Wed, 6 Nov 2024 09:15:25 +0100 Subject: [PATCH] Remove `trusted_hosts` argument from middleware addition --- webproj/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webproj/api.py b/webproj/api.py index fcbada6..cb6aaaf 100644 --- a/webproj/api.py +++ b/webproj/api.py @@ -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")