mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
fix(core): Fix iFrame not displaying on FE dev mode (no-changelog) (#9492)
This commit is contained in:
@@ -371,7 +371,8 @@ export class Server extends AbstractServer {
|
|||||||
const isPreviewMode = process.env.N8N_PREVIEW_MODE === 'true';
|
const isPreviewMode = process.env.N8N_PREVIEW_MODE === 'true';
|
||||||
const securityHeadersMiddleware = helmet({
|
const securityHeadersMiddleware = helmet({
|
||||||
contentSecurityPolicy: false,
|
contentSecurityPolicy: false,
|
||||||
xFrameOptions: isPreviewMode || inE2ETests ? false : { action: 'sameorigin' },
|
xFrameOptions:
|
||||||
|
isPreviewMode || inE2ETests || inDevelopment ? false : { action: 'sameorigin' },
|
||||||
dnsPrefetchControl: false,
|
dnsPrefetchControl: false,
|
||||||
// This is only relevant for Internet-explorer, which we do not support
|
// This is only relevant for Internet-explorer, which we do not support
|
||||||
ieNoOpen: false,
|
ieNoOpen: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user