We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5a6ce29 + 5ffce86 commit 3e2c6d6Copy full SHA for 3e2c6d6
javascript/ql/src/Security/CWE-770/examples/MissingRateLimitingGood.js
@@ -4,8 +4,8 @@ var app = express();
4
// set up rate limiter: maximum of five requests per minute
5
var RateLimit = require('express-rate-limit');
6
var limiter = RateLimit({
7
- windowMs: 1*60*1000, // 1 minute
8
- max: 5
+ windowMs: 15 * 60 * 1000, // 15 minutes
+ max: 100, // max 100 requests per windowMs
9
});
10
11
// apply rate limiter to all requests
0 commit comments