1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00

Allow localhost hostname

This commit is contained in:
Matej Bačo 2023-02-24 12:19:38 +01:00
parent 249a2e1699
commit 18021b6fbd

View file

@ -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]),