mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-07 08:06:37 +08:00
feat(frontend): add a dedicated 403 forbidden page
Show /403 instead of toasting or staying on the denied screen when the API returns 403 or a non-admin opens an admin route.
This commit is contained in:
@@ -120,6 +120,7 @@ export function proxy(request: NextRequest) {
|
||||
'/privacy',
|
||||
'/terms',
|
||||
'/icon',
|
||||
'/403',
|
||||
];
|
||||
const publicPrefixes = ['/docs/', '/epay/'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user