mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-10 13:44:27 +08:00
disabled helmet middleware
This commit is contained in:
parent
e53c2418e6
commit
9b7b0e257e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue