Allow entire assets/ path without auth for ComfyUI proxy

Simpler approach - just allow all requests to assets/ directory.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Adam Ladachowski
2026-02-15 23:40:40 +01:00
parent 7caed3bbea
commit 2ea8bbeafd
+1 -2
View File
@@ -253,8 +253,7 @@ def _check_auth(comfy_session: str | None, path: str = "", method: str = "GET")
return
# Allow static assets without auth (modulepreload doesn't send cookies)
static_extensions = {".js", ".css", ".woff", ".woff2", ".ttf", ".png", ".jpg", ".jpeg", ".gif", ".svg", ".ico", ".json"}
if any(path.lower().endswith(ext) for ext in static_extensions):
if path.startswith("assets/"):
return
if not _verify_session_token(comfy_session):