diff --git a/app/controllers/general.php b/app/controllers/general.php index 3a0bb579cc..d228bef28e 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -67,7 +67,7 @@ App::init() $mainDomain = App::getEnv('_APP_DOMAIN', ''); // Only run Router when external domain - if($host !== $mainDomain) { + if($host !== $mainDomain && $host !== 'localhost') { $route = Authorization::skip( fn() => $dbForConsole->find('routes', [ Query::equal('domain', [$host]),