Skip to content

Commit

Permalink
Disable legacy headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaituVR committed Aug 8, 2023
1 parent 5346755 commit 8849216
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/helpers/rateLimit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export default rateLimit({
windowMs: 20 * 1e3,
max: 60,
keyGenerator: req => getIp(req),
standardHeaders: true,
skip: (req, res) => {
const keycardData = res.locals.keycardData;
if (keycardData?.valid && !keycardData.rateLimited) {
Expand Down

0 comments on commit 8849216

Please sign in to comment.