fix: add ttf/eot/otf to static asset whitelist in AppAuthMiddleware

Vuetify/Monaco fonts return 404 without these extensions whitelisted.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Your Name
2026-05-31 15:42:43 +08:00
parent 3419ab8a09
commit 0fdae981cf
+1 -1
View File
@@ -435,7 +435,7 @@ def _is_app_public_path(path: str) -> bool:
return True
# Allow non-HTML static assets (CSS, JS, images, fonts)
ext = path.rsplit(".", 1)[-1].lower() if "." in path else ""
if ext in ("css", "js", "svg", "png", "ico", "woff", "woff2"):
if ext in ("css", "js", "svg", "png", "ico", "woff", "woff2", "ttf", "eot", "otf"):
return True
return False