修复未登录时动态favicon接口被鉴权拦截
This commit is contained in:
parent
d05167103b
commit
75bdea6fdb
5
proxy.ts
5
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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user