From d1cc2f927ea7831ded6cd948326412f8136fc0e3 Mon Sep 17 00:00:00 2001 From: Alexander Borg Date: Sun, 14 Sep 2025 17:58:53 +0200 Subject: [PATCH] Fix jwt-token --- server/middleware/ip-restriction.js | 6 ++++++ 1 file changed, 6 insertions(+) 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