Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent functions domain to be used as custom domain #7934

Merged
merged 4 commits into from May 5, 2024

Conversation

lohanidamodar
Copy link
Member

What does this PR do?

Prevent functions domain to be used as custom domain

Test Plan

Manually tested

Related PRs and Issues

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

@@ -49,6 +49,12 @@
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 = App::getEnv('_APP_DOMAIN_FUNCTIONS', '');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we do the same for regular custom domains? or this is taking care of this and the error message can be more accurate?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand what you mean?

@eldadfux eldadfux merged commit b2c57e2 into main May 5, 2024
23 checks passed
@lohanidamodar lohanidamodar deleted the fix-custom-domain branch May 5, 2024 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants