mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
updates
This commit is contained in:
1 parent
ec02d881c9
commit
812d8a34cf
1 file changed
+6
-6
@@ -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