We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4b01af commit 01f6854Copy full SHA for 01f6854
1 file changed
api-gateway/src/middleware/security.ts
@@ -22,7 +22,10 @@ export const applySecurityMiddleware = (app: Application) => {
22
// Apply rate limiter if needed
23
const limiter = rateLimit({
24
windowMs: 15 * 60 * 1000, // 15 minutes
25
- max: 100
+ max: 100,
26
+ standardHeaders: true, // Return rate limit info in the `RateLimit-*` headers
27
+ legacyHeaders: false,
28
});
29
+
30
app.use(limiter);
31
};
0 commit comments