Skip to content

Commit

Permalink
Merge pull request #434 from sparcs-kaist/#433-bug-trust-proxy-값이-잘못-설정됨
Browse files Browse the repository at this point in the history
  • Loading branch information
withSang authored Nov 14, 2023
2 parents d4893b0 + 3f991d3 commit 4162a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ app.use(express.urlencoded({ extended: false }));
app.use(express.json());

// reverse proxy가 설정한 헤더를 신뢰합니다.
if (nodeEnv === "production") app.set("trust proxy", 1);
if (nodeEnv === "production") app.set("trust proxy", 2);

// [Middleware] CORS 설정
app.use(require("./src/middlewares/cors"));
Expand Down

0 comments on commit 4162a71

Please sign in to comment.