修复未登录时动态favicon接口被鉴权拦截
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-02-14 21:39:25 +08:00
parent d05167103b
commit 75bdea6fdb

View File

@ -81,6 +81,11 @@ export async function proxy(request: NextRequest) {
return NextResponse.next();
}
// 允许公开访问动态 favicon(浏览器标签图标)
if (pathname === "/api/favicon") {
return NextResponse.next();
}
// 允许访问公开的认证配置(登录弹窗需要)
if (pathname === "/api/auth-settings") {
return NextResponse.next();