mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
_APP_DOMAIN_FUNCTIONS_FALLBACK
This commit is contained in:
parent
3cfb013f1e
commit
50400c4b43
1 changed files with 0 additions and 8 deletions
|
|
@ -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.');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue