From 50400c4b43e448dbeb97173a0306f4c7aff2cfa6 Mon Sep 17 00:00:00 2001 From: shimon Date: Wed, 5 Feb 2025 13:14:03 +0200 Subject: [PATCH] _APP_DOMAIN_FUNCTIONS_FALLBACK --- app/controllers/general.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/controllers/general.php b/app/controllers/general.php index 182dcbcc1b..374080ff52 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -80,14 +80,6 @@ function router(App $utopia, Database $dbForPlatform, callable $getProjectDB, Sw $appDomainFunctions = $appDomainFunctionsFallback; } - var_dump([ - 'location' => 'router', - '_APP_DOMAIN_FUNCTIONS_FALLBACK' => System::getEnv('_APP_DOMAIN_FUNCTIONS_FALLBACK', ''), - '_APP_DOMAIN_FUNCTIONS' => System::getEnv('_APP_DOMAIN_FUNCTIONS' ,''), - 'appDomainFunctions' => $appDomainFunctions, - 'host' => $host, - ]); - if ($host === $appDomainFunctions) { throw new AppwriteException(AppwriteException::GENERAL_ACCESS_FORBIDDEN, 'This domain cannot be used for security reasons. Please use any subdomain instead.'); }