Allow localhost hostname
This commit is contained in:
parent
249a2e1699
commit
18021b6fbd
1 changed files with 1 additions and 1 deletions
|
@ -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]),
|
||||
|
|
Loading…
Reference in a new issue