Closed a989898 closed 3 years ago
When using express-rate-limit:
// express-rate-limit const rateLimit = require('express-rate-limit'); const limiter = rateLimit({ windowMs: 15 * 60 * 1000, // 15 minutes max: 100 // limit each IP to 100 requests per windowMs }); app.use(limiter()); // apply to all requests
Hi @a989898 I took a look at that module and it uses some Express.js-specific API calls, so you would need to use it with Express.js and not with Connect.
When using express-rate-limit: