mirror of https://github.com/nocodb/nocodb
Mert E
10 months ago
committed by
GitHub
14 changed files with 1400 additions and 965 deletions
@ -1,3 +1,3 @@
|
||||
engine-strict=true |
||||
shamefully-hoist=true |
||||
use-node-version=18.19.0 |
||||
use-node-version=18.19.0 |
||||
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,17 @@
|
||||
export default defineNuxtRouteMiddleware(async (to) => { |
||||
// avoid non-embeddable paths within an iframe
|
||||
if (self !== top) { |
||||
// allow for shared base
|
||||
if (to.path.startsWith('/base/')) { |
||||
return |
||||
} |
||||
|
||||
// allow for shared views
|
||||
if (to.meta?.layout === 'shared-view') { |
||||
return |
||||
} |
||||
|
||||
// throw for all other pages
|
||||
throw createError({ statusCode: 403, message: 'Not allowed' }) |
||||
} |
||||
}) |
Loading…
Reference in new issue