1
0
Fork 0
mirror of synced 2024-09-19 19:07:21 +12:00

Merge pull request #8472 from ItzNotABug/fix-proxy-rules-check

Fix Domain Check
This commit is contained in:
Steven Nguyen 2024-08-07 22:17:45 -07:00 committed by GitHub
commit 6410b2062c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,7 +51,7 @@ App::post('/v1/proxy/rules')
}
$functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', '');
if (str_ends_with($domain, $functionsDomain)) {
if ($functionsDomain != '' && 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.');
}