-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't workinginvalidThis doesn't seem rightThis doesn't seem rightno-issue-activity
Description
Check why express-rate-limit doesn't work.
I use it as a middleware but still doesn't work, here is the code :
const rateLimit = require('express-rate-limit').default;
app.use(
rateLimit ({
windowMs: 60 * 1000,
max: 5,
handler: function (req, res) {
return res.status(429).json({
error: 'You sent too many requests. Please wait a while then try again'
})
}
}));Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinginvalidThis doesn't seem rightThis doesn't seem rightno-issue-activity