Remove legacy rate-limit headers
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
eb1245c42a
commit
5072d473bb
2
app.js
2
app.js
@ -43,7 +43,7 @@ const limiter = rateLimit({
|
|||||||
windowMs: 15 * (60 * 1000), // 15 minutes
|
windowMs: 15 * (60 * 1000), // 15 minutes
|
||||||
max: 100, // Limit each IP to 100 requests per `window` (here, per 15 minutes)
|
max: 100, // Limit each IP to 100 requests per `window` (here, per 15 minutes)
|
||||||
standardHeaders: true, // Return rate limit info in the `RateLimit-*` headers
|
standardHeaders: true, // Return rate limit info in the `RateLimit-*` headers
|
||||||
legacyHeaders: true, // Disable the `X-RateLimit-*` headers
|
legacyHeaders: false, // Disable the `X-RateLimit-*` headers
|
||||||
});
|
});
|
||||||
|
|
||||||
// Print version number:
|
// Print version number:
|
||||||
|
Loading…
Reference in New Issue
Block a user