diff --git a/server/middleware/ip-restriction.js b/server/middleware/ip-restriction.js index d4afd11..9973f5d 100644 --- a/server/middleware/ip-restriction.js +++ b/server/middleware/ip-restriction.js @@ -153,6 +153,12 @@ class IPRestrictionMiddleware { 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); // Determine tenant