mirror of
https://gitlab.com/2-chainz/2chainz.git
synced 2025-08-02 03:31:25 +00:00
Add Proxy Headers
This commit is contained in:
@@ -10,7 +10,7 @@ from fastapi.middleware.trustedhost import TrustedHostMiddleware
|
||||
|
||||
app = FastAPI()
|
||||
app.add_middleware(
|
||||
TrustedHostMiddleware, allowed_hosts=["ansonbiggs.com", "*.ansonbiggs.com"]
|
||||
TrustedHostMiddleware, allowed_hosts=["ansonbiggs.com", "*.ansonbiggs.com", "localhost"]
|
||||
)
|
||||
|
||||
start_time = time.time()
|
||||
|
Reference in New Issue
Block a user