From 84388726d995e040cd3c2e6aebd47938986cd8f2 Mon Sep 17 00:00:00 2001 From: Kamrul H Shourov Date: Fri, 1 Nov 2024 12:44:22 +0600 Subject: [PATCH] Remove x-powered-by header for security purposes --- src/main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.ts b/src/main.ts index 0625d21..ff5f8cc 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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();