From 33e3e2c8dbfbbd81e3f4516302facd6124acb536 Mon Sep 17 00:00:00 2001 From: davidcrammer Date: Mon, 25 Mar 2024 16:21:17 -0700 Subject: [PATCH] Add trust proxy setting to app.js --- src/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app.js b/src/app.js index fb8e041..550bec1 100644 --- a/src/app.js +++ b/src/app.js @@ -23,6 +23,8 @@ import "./models/index" const PORT = process.env.PORT || 3000 const app = Express() +app.set("trust proxy", 1) + app.use(json()) app.use(cors()) app.use(helmet())