Fix login page: allow /icons/ through auth middleware, match color scheme to AC logo
This commit is contained in:
parent
9f49038107
commit
8f681398ee
2 changed files with 35 additions and 37 deletions
6
main.py
6
main.py
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue