Skip to content

Commit 6f6a993

Browse files
committed
Explicitly set 127.0.0.1 as trusted host
1 parent 06d62f6 commit 6f6a993

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webproj/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def token_query_param(
8181
)
8282
origins = ["*"]
8383
app.add_middleware(CORSMiddleware, allow_origins=origins)
84-
app.add_middleware(ProxyHeadersMiddleware)
84+
app.add_middleware(ProxyHeadersMiddleware, trusted_hosts="127.0.0.1")
8585

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

0 commit comments

Comments
 (0)