From 34f683ad56c3b0c3f7c896b90092cb9f930ba22e Mon Sep 17 00:00:00 2001 From: Adam Ladachowski Date: Sun, 15 Feb 2026 23:54:51 +0100 Subject: [PATCH] Disable CORS entirely --- tensors/server/__init__.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tensors/server/__init__.py b/tensors/server/__init__.py index 56587a3..5087e8b 100644 --- a/tensors/server/__init__.py +++ b/tensors/server/__init__.py @@ -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")