Custom URL page doesn't load with "Connection is not private"

I recently set up a github pages homepage/blog with a custom URL. I followed the guide here. (https://help.github.com/en/github/working-with-github-pages/configuring-a-custom-domain-for-your-github-pages-site) My setup has worked mostly as now my website appears at bavarian.dev
My problem is with CNAME and www version of the website, which doesn’t work (www.bavarian.dev)

I think I have setup my CNAME content and DNS configuration (Google domains) correctly, the photos are attached.

Please let me know if you have any ideas how to fix this.

Did you find a solution? I’ve exactly the same problem and same DNS setup.

Cheers, Fons.

If you’re using the built-in Pages HTTPS support, the certificate will only work with the apex domain or the subdomain, not both. See this other topic for more information. Since this is a duplicate of that topic, I’m going to close this one and you may want to continue the conversation there.