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

Commit

Permalink
Disable x powered by
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDogHusky committed Sep 1, 2024
1 parent f42b3f6 commit b3c5678
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ if (process.env.NODE_ENV === 'development') {
}
app.use('/static', express.static(path.join(__dirname, '..', 'web', 'static')));
app.use(require('./handlers/logging.js')(logger));
app.disable("x-powered-by");

const isValidMethod = (method) => {
return ['GET', 'POST', 'PUT', 'DELETE', 'PATCH'].includes(method.toUpperCase());
Expand Down

0 comments on commit b3c5678

Please sign in to comment.