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(); }; }