Skip to content

Commit

Permalink
Add trust proxy setting in backend/index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoCoding committed Apr 10, 2024
1 parent 583a245 commit c07ace9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ declare global {
}
}

app.set("trust proxy", 1); // Trust first proxy

// Middlewares
app.use(express.json());
app.use(cookieParser());
Expand Down

0 comments on commit c07ace9

Please sign in to comment.