Browse Source

fix: PR requested change

pull/7651/head
mertmit 5 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
if (self !== top) {
// allow for shared base
const embeddablePaths = ['/base/']
const embedRegex = new RegExp(`^(${embeddablePaths.join('|')})`)
if (embedRegex.test(to.path)) {
if (to.path.startsWith('/base/')) {
return
}

Loading…
Cancel
Save