Fix login page: allow /icons/ through auth middleware, match color scheme to AC logo

This commit is contained in:
Erik 2026-04-10 20:07:06 +02:00
parent 9f49038107
commit 8f681398ee
2 changed files with 35 additions and 37 deletions

View file

@ -1041,7 +1041,11 @@ class AuthMiddleware(BaseHTTPMiddleware):
return await call_next(request)
# Allow login page static assets
if path == "/login.html" or path == "/login-style.css":
if (
path == "/login.html"
or path == "/login-style.css"
or path.startswith("/icons/")
):
return await call_next(request)
# WebSocket upgrade for /ws/live — allow (browser WS, read-only)