-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
Description
Description of the false positive
I wrapped rate limit middleware,
import rateLimit, { Options } from 'express-rate-limit';
const rateLimitOptions: Options = {
windowMs: 60 * 1000, // 60 sec
max: 100, // requests per IP
message: 'Sorry, too many requests, please try again later.',
};
const rateLimitMiddleware = rateLimit(rateLimitOptions);
export default rateLimitMiddleware;and use globally in the begging of the app by
app.use(rateLimitMiddleware);However, LGTM.com still think it is not rate-limited.
URL to the alert on the project page on LGTM.com