From d9616fc36fd20e1c91ed13fc49e87ac9715bd282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Wed, 22 May 2024 17:29:30 +0200 Subject: [PATCH] fix(core): Fix iFrame not displaying on FE dev mode (no-changelog) (#9492) --- packages/cli/src/Server.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/Server.ts b/packages/cli/src/Server.ts index c8054a78b..446ec367a 100644 --- a/packages/cli/src/Server.ts +++ b/packages/cli/src/Server.ts @@ -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,