Can't register Static Web Apps to a specific domain

Emil Pettersson 25 Reputation points
2024-03-21T13:40:43.6466667+00:00

I'm trying to register a custom domain to my Static Web App. I have tried doing this with three domains that I have control over, two of them work, but not the third, which is the one I want. When I try to Add it under Custom Domains it seems to work. The control says it is validated.

But in the list of Custom Domains it is shown that Validation Failed. And it is not functional for accessing my web app. If I click View Details it says an Unknown error has occured. Activity Log doesn't give any more info. Just says it is a Unspecified Error.

I have tried with two different static web apps and the problem occurs with both for this specific domain. This domain works as custom domain with an Azure App Service though. I have controlled that the record exists at my registrar. With other domains it is possible to get everything working within 15 minutes or so, so I am guessing it is not because of DNS propagation. I have had this problem for a bit more than 24 hours.

My registrar could not find any significant differences between the domains

What could be the problem?

validated.png

Validation_failed.png

details.png

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
762 questions
0 comments No comments
{count} vote

Accepted answer
  1. ajkuma 22,401 Reputation points Microsoft Employee
    2024-03-22T19:15:39.6066667+00:00

    Edit:

    As discussed privately , kindly let us know, if adding add digicert to CAA records helps

    https://github.com/Azure/static-web-apps/issues/202#issuecomment-845512377 "So we believe the problem is caused by the presence of CAA records in your custom domain's parent domain, which prevents the SWA platform from provisioning a certificate. For example, if you are trying to add yoursite.mydomain.com to the SWA and you have incompatible CAA records at mydomain.com (the parent domain), we will be unable to issue a certificate and the overall custom domain add process will fail.

    You can either

    remove these CAA records, or

    add a new CAA record to enable our certificate provider, DigiCert, to issue certificates for your domain. this would be of the form mydomain.com CAA 0 issue "digicert.com"

    After the record changes propagate, you should be able to try again.

    --

    Apologies for any inconvenience with this issue. For additional info about the resources, I have reached out to you privately.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful