Revert "Merge branch 'main' of https://github.com/appwrite/appwrite into feat-add-version-header"

This reverts commit 824309e4e6, reversing
changes made to 2d09a3a17b.
This commit is contained in:
loks0n committed 2024-05-08 10:09:28 +01:00
1 parent 0aadda9605
commit 91ee67d69f
18 files changed
+97 -183

No files matched your search

-6
View File
@@ -49,12 +49,6 @@ App::post('/v1/proxy/rules')
if ($domain === $mainDomain) {
throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'You cannot assign your main domain to specific resource. Please use subdomain or a different domain.');
}
$functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', '');
if (str_ends_with($domain, $functionsDomain)) {
throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'You cannot assign your functions domain or it\'s subdomain to specific resource. Please use different domain.');
}
if ($domain === 'localhost' || $domain === APP_HOSTNAME_INTERNAL) {
throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please pick another one.');
}