From cd574c87ef56349431d4ebb622fccfa8dc2094d3 Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Tue, 28 May 2024 16:10:43 -0400 Subject: [PATCH] Fix the previous fix --- packages/backend/src/middleware/subdomain.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/backend/src/middleware/subdomain.js b/packages/backend/src/middleware/subdomain.js index fcb4a8ec..6735b8c1 100644 --- a/packages/backend/src/middleware/subdomain.js +++ b/packages/backend/src/middleware/subdomain.js @@ -20,7 +20,10 @@ const subdomain = allowedSubdomains => { const actual_subdomain = require('../helpers').subdomain(req); if ( ! allowedSubdomains.includes(actual_subdomain) ) { next('route'); + return; } + + next(); }; }