Fix jwt-token
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user