This commit is contained in:
Damodar Lohani 2024-04-08 03:45:02 +00:00
parent 82e6db903a
commit 4612636144

View file

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