Skip to content

Commit

Permalink
fix: FORMS-1367 remove powered-by header (bcgov#1435)
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterMoar authored Jul 16, 2024
1 parent 6cce619 commit 419db29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ app.use(express.urlencoded({ extended: true }));
// See https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR
app.set('trust proxy', 1);

app.set('x-powered-by', false);

// Skip if running tests
if (process.env.NODE_ENV !== 'test') {
// Initialize connections and exit if unsuccessful
Expand Down

0 comments on commit 419db29

Please sign in to comment.