Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Commit b3ec3fc

Browse files
✨ Add helmet for security
1 parent 7fe21a1 commit b3ec3fc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import { ValidationPipe } from '@nestjs/common';
22
import { NestFactory } from '@nestjs/core';
33
import { AppModule } from './app.module';
4+
import helmet from 'helmet';
45

56
async function bootstrap() {
67
const app = await NestFactory.create(AppModule);
78
app.useGlobalPipes(new ValidationPipe());
9+
app.use(helmet());
810
await app.listen(3000);
911
}
1012
bootstrap();

0 commit comments

Comments
 (0)