reenabled helmet

This commit is contained in:
Miodec 2022-02-22 23:00:27 +01:00
parent e18da7da87
commit 91657fd53f

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);