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

How to resolve when there are more than 10 domains to be registered in allowedForwardedHosts #1569

Open
gatsukichi opened this issue Oct 29, 2024 · 0 comments

Comments

@gatsukichi
Copy link

I am using a Static Web App in conjunction with Azure Front Door, and I have a large number of custom domains attached to a single Front Door route. This setup is necessary due to product requirements, as these custom domains need to be visible to end-users and cannot be replaced with redirects. Additionally, these domains allow for specific URL-based design modifications.

The problem arises in the staticwebapp.config.json configuration. I’ve completed the integration with AAD login using the auth block and needed to specify my domains under the forwardingGateway -> allowedForwardedHosts array. However, after setting up 13 domains (as a test, though I have more), I encountered the following error:

No more than 10 allowedForwardedHosts can be specified for the forwardingGateway, but 13 hosts are currently specified.
I believe there are other users like me who attach multiple custom domains to a single AFD route.

Is there any solution for the above?

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

No branches or pull requests

1 participant