Skip to content

Commit

Permalink
disable X-Frame-Options in e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy committed Apr 9, 2024
1 parent 69b5042 commit 4bc112e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ export class Server extends AbstractServer {
const isPreviewMode = process.env.N8N_PREVIEW_MODE === 'true';
const securityHeadersMiddleware = helmet({
contentSecurityPolicy: false,
xFrameOptions: isPreviewMode ? false : { action: 'sameorigin' },
xFrameOptions: isPreviewMode || inE2ETests ? false : { action: 'sameorigin' },
dnsPrefetchControl: false,
// This is only relevant for Internet-explorer, which we do not support
ieNoOpen: false,
Expand Down

0 comments on commit 4bc112e

Please sign in to comment.