Netilfy custom domain not working

Hello,
I have a netifly website. I recently purchased a custom domain with Netlify. I want to access my netlify website through the custom domain I purchased. In my netlify app’s domain settings I added the custom domain. However, when I go to the custom domain in the browser, nothing is rendered (says, “This site can’t be reached”).

(my netlify website------>): https://luisdevblog.netlify.app [works fine, as normal]
(custom domain -------->) https://devblog.dev [nothing happens; I was expecting my netlify app to be rendered under the custom domain name]

What I’m missing here?

Hi @luism

When visiting your custom domain I see the following errors in Dev Tools which I don’t see when using the netlify.app URL.

Seems you need to change the content security settings you have implemented.

Thank you. I discovered that after adding the Netlify’s custom domain to my netlify app, I needed to make a new deploy for the custom domain to start working. .I think this is important information to include in the docs so that the user is not confused as to why the DNS being configured automatically on the Netlify end, the newly acquired custom domain does snot work.

As of the error, it is a cross-origin request error; I fixed it by allowing my backend to receive requests from the new custom domain url.

Thank you for your help.

That is not the case. Changes to site’s domain are reflected without a deploy. But if you’re using environment variable to access the site’s URL, then a re-deploy would be needed as it’s the case with any environment variable.

So the site not reflecting the change is just something that takes time then?

Hi, @tventura94. That is not what happened here.

The issue above was that the site in question was setting CORS headers that limited access to APIs to specific domain names. When they added the custom domain they did not change their CORS headers to include the new custom domain. They needed to make a new deploy to change those headers. The framework requiring a new deploy to update the headers was the reason for the delay.

My website…

Custom domain: http://itsantsstudios.com
Netlify domain: https://antsstudios.netlify.app/

My Netlify domain works everytime fine, my custom domain works every now and then and when checking the console I noticed it said something about my mp4 video. Not sure what to do.

itsantsstudios.com is using Netlify DNS. There are no issues with it.

This is nothing to do with the issue this topic was opened to solve and you should open a new topic if you believe this is an issue with Netlify.