Disable CORS entirely
This commit is contained in:
@@ -49,14 +49,7 @@ def create_app() -> FastAPI:
|
|||||||
redoc_url=None,
|
redoc_url=None,
|
||||||
)
|
)
|
||||||
|
|
||||||
# CORS - allow all origins (credentials=False required for wildcard origin)
|
# CORS disabled - ComfyUI proxy handles its own requests
|
||||||
app.add_middleware(
|
|
||||||
CORSMiddleware,
|
|
||||||
allow_origins=["*"],
|
|
||||||
allow_credentials=False,
|
|
||||||
allow_methods=["*"],
|
|
||||||
allow_headers=["*"],
|
|
||||||
)
|
|
||||||
|
|
||||||
# Public endpoints (no auth)
|
# Public endpoints (no auth)
|
||||||
@app.get("/status")
|
@app.get("/status")
|
||||||
|
|||||||
Reference in New Issue
Block a user