Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
fix(helmet): disable breaking headers (#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
JAdshead committed Jul 19, 2022
1 parent e36f1c8 commit 7fd51d7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/server/ssrServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ export function createApp({ enablePostToModuleRoutes = false } = {}) {

app.disable('x-powered-by');
app.disable('e-tag');
app.use(helmet());
app.use(helmet({
crossOriginEmbedderPolicy: false,
crossOriginOpenerPolicy: false,
crossOriginResourcePolicy: false,
originAgentCluster: false,
}));
app.use(csp());
app.use(cookieParser());
app.use(json({
Expand Down

0 comments on commit 7fd51d7

Please sign in to comment.