Skip to content

Commit

Permalink
fix: relax default helmet policy to allow cross origin
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Jul 5, 2024
1 parent 44ca4fe commit 3d81d6a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ if (!process.env.OPEN_QUAD_WORD) {

let app = express();

app.use(helmet());
app.use(
helmet({
crossOriginResourcePolicy: { policy: 'cross-origin' },
}),
);
app.use(cors());

// required for parsing submitted form data
Expand Down

0 comments on commit 3d81d6a

Please sign in to comment.