Skip to content

Commit e53a4fc

Browse files
committed
feat: trust proxy for ip
1 parent 432914d commit e53a4fc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

backend/src/app.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ const clientDistPath = path.join(__dirname, "../public");
1414

1515
const app = express();
1616

17+
app.set("trust proxy", true);
18+
1719
app.use(helmet());
1820
app.use(requestLogger);
1921
app.use(passport.initialize());

0 commit comments

Comments
 (0)