This commit is contained in:
Jake Kasper
2025-09-04 07:42:59 -05:00
parent fcce8ba86d
commit c7e52eacb4

View File

@@ -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