mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
updates
This commit is contained in:
@@ -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.');
|
||||
|
||||
Reference in New Issue
Block a user