asdf
This commit is contained in:
@@ -68,7 +68,11 @@ const authLimiter = rateLimit({
|
|||||||
message: 'Too many authentication attempts, please try again later.',
|
message: 'Too many authentication attempts, please try again later.',
|
||||||
standardHeaders: true,
|
standardHeaders: true,
|
||||||
legacyHeaders: false,
|
legacyHeaders: false,
|
||||||
skip: (req) => (req.path || '') === '/registration-status'
|
// Skip low-risk polling endpoint regardless of mount path
|
||||||
|
skip: (req) => {
|
||||||
|
const p = req.originalUrl || req.url || req.path || '';
|
||||||
|
return p.endsWith('/registration-status');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Middleware
|
// Middleware
|
||||||
|
|||||||
Reference in New Issue
Block a user