disabled helmet middleware

This commit is contained in:
Miodec 2022-02-22 21:03:50 +01:00
parent e53c2418e6
commit 9b7b0e257e

View file

@ -1,5 +1,5 @@
import cors from "cors";
import helmet from "helmet";
// import helmet from "helmet";
import addApiRoutes from "./api/routes";
import express, { urlencoded, json } from "express";
import contextMiddleware from "./middlewares/context";
@ -11,7 +11,7 @@ function buildApp() {
app.use(urlencoded({ extended: true }));
app.use(json());
app.use(cors());
app.use(helmet());
// app.use(helmet());
app.set("trust proxy", 1);