mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-11 17:16:40 +08:00
reenabled helmet
This commit is contained in:
parent
e18da7da87
commit
91657fd53f
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…
Add table
Reference in a new issue