Merge pull request #8472 from ItzNotABug/fix-proxy-rules-check
Fix Domain Check
This commit is contained in:
commit
6410b2062c
1 changed files with 1 additions and 1 deletions
|
@ -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.');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue