fix(core): Fix iFrame not displaying on FE dev mode (no-changelog) (#9492)

This commit is contained in:
Iván Ovejero
2024-05-22 17:29:30 +02:00
committed by GitHub
parent 9bdc83a399
commit d9616fc36f

View File

@@ -371,7 +371,8 @@ export class Server extends AbstractServer {
const isPreviewMode = process.env.N8N_PREVIEW_MODE === 'true';
const securityHeadersMiddleware = helmet({
contentSecurityPolicy: false,
xFrameOptions: isPreviewMode || inE2ETests ? false : { action: 'sameorigin' },
xFrameOptions:
isPreviewMode || inE2ETests || inDevelopment ? false : { action: 'sameorigin' },
dnsPrefetchControl: false,
// This is only relevant for Internet-explorer, which we do not support
ieNoOpen: false,