Skip to content

Commit

Permalink
🚑 Remove fastify helmet middleware because of an understandably bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Xen0Xys committed Jun 19, 2024
1 parent 45a67c8 commit aa39e17
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -83,12 +83,12 @@ async function loadServer(server: NestFastifyApplication<RawServerDefault>, 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()
Expand Down

0 comments on commit aa39e17

Please sign in to comment.