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:
@@ -253,8 +253,7 @@ def _check_auth(comfy_session: str | None, path: str = "", method: str = "GET")
|
|||||||
return
|
return
|
||||||
|
|
||||||
# Allow static assets without auth (modulepreload doesn't send cookies)
|
# 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 path.startswith("assets/"):
|
||||||
if any(path.lower().endswith(ext) for ext in static_extensions):
|
|
||||||
return
|
return
|
||||||
|
|
||||||
if not _verify_session_token(comfy_session):
|
if not _verify_session_token(comfy_session):
|
||||||
|
|||||||
Reference in New Issue
Block a user