diff --git a/main.py b/main.py index 292f4fc..7aee9d5 100755 --- a/main.py +++ b/main.py @@ -1,6 +1,11 @@ from fastapi import FastAPI +from uvicorn.middleware.proxy_headers import ProxyHeadersMiddleware app = FastAPI() +app.add_middleware( + ProxyHeadersMiddleware, trusted_hosts=[None] +) + @app.get("/f1") async def f1(): return {