瀏覽代碼

Fix the previous fix

KernelDeimos 1 年之前
父節點
當前提交
cd574c87ef
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      packages/backend/src/middleware/subdomain.js

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