mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
_APP_OPTIONS_ROUTER_PROTECTION
This commit is contained in:
parent
134f90a464
commit
b706571a21
1 changed files with 4 additions and 0 deletions
|
|
@ -57,6 +57,10 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo
|
|||
])
|
||||
)[0] ?? null;
|
||||
|
||||
var_dump(System::getEnv('_APP_DOMAIN_FUNCTIONS', ''));
|
||||
var_dump($host);
|
||||
var_dump(APP_HOSTNAME_INTERNAL);
|
||||
|
||||
if ($route === null) {
|
||||
if ($host === System::getEnv('_APP_DOMAIN_FUNCTIONS', '')) {
|
||||
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