Skip to content

Commit

Permalink
feat(indiekit): don’t send x-powered-by header
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Apr 5, 2024
1 parent 0e2fbcf commit b797b2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/indiekit/config/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export const expressConfig = (indiekitConfig) => {
// Enable reversed proxy connections
app.enable("trust proxy");

// Don’t advertise server details
app.set("x-powered-by", false);

// Body parsers
app.use(express.json());
app.use(express.urlencoded({ extended: true }));
Expand Down

0 comments on commit b797b2b

Please sign in to comment.