added helmet package to protect headers security

This commit is contained in:
rodrigo.zamboni
2022-04-25 16:11:50 -03:00
parent 4672ecb6b3
commit 30b048f776
4 changed files with 18 additions and 1 deletions
+3
View File
@@ -1,6 +1,7 @@
import { NestFactory } from '@nestjs/core';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
import { writeFileSync } from 'fs';
import helmet from 'helmet';
import { AppModule } from './app.module';
@@ -14,6 +15,8 @@ async function bootstrap() {
},
});
app.use(helmet());
const config = new DocumentBuilder()
.setTitle('Maestro Grpc Documentation')
.setDescription('Documentation for Maestro gateway')
-1
View File
@@ -245,7 +245,6 @@ class CatalogService {
return data;
}
async deleteTags(id, body) {
const customer =
body.info.customer.toLowerCase() === 'dadosfera'