_APP_DOMAIN_FUNCTIONS_FALLBACK

This commit is contained in:
shimon 2025-02-05 13:14:03 +02:00
parent 3cfb013f1e
commit 50400c4b43

View file

@ -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.');
}