diff --git a/src/main.ts b/src/main.ts index d769c12..5a6a38f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -7,7 +7,7 @@ import * as process from "process"; import * as dotenv from "dotenv"; import * as fs from "fs"; import * as os from "os"; -import * as fastifyHelmet from "@fastify/helmet"; +// import * as fastifyHelmet from "@fastify/helmet"; import {SwaggerTheme, SwaggerThemeNameEnum} from "swagger-themes"; import {LoggerMiddleware} from "./common/middlewares/logger.middleware"; import {Logger} from "@nestjs/common"; @@ -83,12 +83,12 @@ async function loadServer(server: NestFastifyApplication, serv // Middlewares server.use(new LoggerMiddleware().use); - await server.register(fastifyHelmet, { - contentSecurityPolicy: false, - crossOriginEmbedderPolicy: false, - crossOriginOpenerPolicy: false, - crossOriginResourcePolicy: false, - }); + // await server.register(fastifyHelmet, { + // contentSecurityPolicy: false, + // crossOriginEmbedderPolicy: false, + // crossOriginOpenerPolicy: false, + // crossOriginResourcePolicy: false, + // }); // Swagger const config = new DocumentBuilder()