Skip to content

Commit

Permalink
disable trust proxy validation for rate limiting
Browse files Browse the repository at this point in the history
  • Loading branch information
sdumetz committed Nov 27, 2024
1 parent d72ffc3 commit 318e5bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/server/routes/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ router.post("/login/:username/link", either(isAdministrator, rateLimit({
limit: 1, // Limit each IP to 1 request per `window`.
standardHeaders: 'draft-7',
legacyHeaders: false,
validate: {trustProxy: false}
})), wrap(sendLoginLink));

router.post("/logout", postLogout);
Expand Down

0 comments on commit 318e5bc

Please sign in to comment.