Fix jwt-token

This commit is contained in:
2025-09-14 17:58:53 +02:00
parent 46a40074bd
commit d1cc2f927e

View File

@@ -153,6 +153,12 @@ class IPRestrictionMiddleware {
return next(); return next();
} }
// Skip IP restrictions for management routes - they have their own access controls
if (req.path.startsWith('/api/management/')) {
console.log('🔍 IP Restriction - Skipping for management route:', req.path);
return next();
}
console.log('🔍 IP Restriction Check - Path:', req.path, 'Method:', req.method); console.log('🔍 IP Restriction Check - Path:', req.path, 'Method:', req.method);
// Determine tenant // Determine tenant