feat: add some security packages

This commit is contained in:
2026-07-08 07:46:37 +03:30
parent 03ba4ceabe
commit b4570f6df9
5 changed files with 58 additions and 1 deletions
+3
View File
@@ -3,6 +3,7 @@ import { AppModule } from './app.module';
import { I18nValidationExceptionFilter, I18nValidationPipe } from 'nestjs-i18n';
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
import { ResponseInterceptor } from './common/interceptors/response.interceptor';
import helmet from 'helmet';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
@@ -36,6 +37,8 @@ async function bootstrap() {
credentials: true,
});
app.use(helmet());
const config = new DocumentBuilder()
.setTitle('Borna API')
.setDescription('Borna API Documentation')