diff --git a/javascript/ql/src/Security/CWE-770/examples/MissingRateLimitingGood.js b/javascript/ql/src/Security/CWE-770/examples/MissingRateLimitingGood.js index 72bb25eab16f..1adc08ae39c1 100644 --- a/javascript/ql/src/Security/CWE-770/examples/MissingRateLimitingGood.js +++ b/javascript/ql/src/Security/CWE-770/examples/MissingRateLimitingGood.js @@ -4,8 +4,8 @@ var app = express(); // set up rate limiter: maximum of five requests per minute var RateLimit = require('express-rate-limit'); var limiter = RateLimit({ - windowMs: 1*60*1000, // 1 minute - max: 5 + windowMs: 15 * 60 * 1000, // 15 minutes + max: 100, // max 100 requests per windowMs }); // apply rate limiter to all requests