Browse Source

fix: PR requested change

pull/7651/head
mertmit 10 months ago
parent
commit
1758af586d
  1. 4
      packages/nc-gui/middleware/01.security.global.ts

4
packages/nc-gui/middleware/01.security.global.ts

@ -2,9 +2,7 @@ export default defineNuxtRouteMiddleware(async (to) => {
// avoid non-embeddable paths within an iframe // avoid non-embeddable paths within an iframe
if (self !== top) { if (self !== top) {
// allow for shared base // allow for shared base
const embeddablePaths = ['/base/'] if (to.path.startsWith('/base/')) {
const embedRegex = new RegExp(`^(${embeddablePaths.join('|')})`)
if (embedRegex.test(to.path)) {
return return
} }

Loading…
Cancel
Save