mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
updates
This commit is contained in:
parent
ec02d881c9
commit
812d8a34cf
1 changed files with 6 additions and 6 deletions
|
|
@ -57,12 +57,12 @@ 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);
|
||||
var_dump($request->getHeader('host'));
|
||||
var_dump($request->getHeader('x-forwarded-host'));
|
||||
|
||||
// var_dump(System::getEnv('_APP_DOMAIN_FUNCTIONS', ''));
|
||||
// var_dump($host);
|
||||
// var_dump(APP_HOSTNAME_INTERNAL);
|
||||
// var_dump($request->getHeader('host'));
|
||||
// var_dump($request->getHeader('x-forwarded-host'));
|
||||
|
||||
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