Skip to content

Commit

Permalink
Remove x-powered-by header for security purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
khshourov committed Nov 1, 2024
1 parent 8b1aa4a commit 8438872
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ async function bootstrap() {
app.setBaseViewsDir(join(__dirname, '..', 'views'));
app.setViewEngine('hbs');

app.getHttpAdapter().getInstance().disable('x-powered-by');

await app.listen(process.env.PORT ?? 3000);
}
bootstrap();

0 comments on commit 8438872

Please sign in to comment.