From 45e0840fea56685f8e88d82ef9c5f891b18734a9 Mon Sep 17 00:00:00 2001 From: MasterAcnolo <68693319+MasterAcnolo@users.noreply.github.com> Date: Tue, 17 Feb 2026 23:26:01 +0100 Subject: [PATCH] Fix: Correct windowMs value in rate limit configuration to 15 minutes --- server/helpers/rateLimit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/helpers/rateLimit.js b/server/helpers/rateLimit.js index 9100b0b..8d85534 100644 --- a/server/helpers/rateLimit.js +++ b/server/helpers/rateLimit.js @@ -3,7 +3,7 @@ const RateLimit = require("express-rate-limit"); /* Rate Limite */ const rateLimite = RateLimit({ - windowMs: 15 * 60, // 15 ms + windowMs: 15 * 60 * 1000, // 15 minutes max: 5, // limit each IP to 100 requests per windowMs on the root path message: "Too many requests, please try again later.", statusCode: 429, // HTTP status code for "Too Many Requests"