diff --git a/proxy.ts b/proxy.ts index 551f88287..ce2b7bba9 100644 --- a/proxy.ts +++ b/proxy.ts @@ -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();