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