'Firebase Hosting with Google Domains - How to configure CNAME [closed]

I have a domain that I purchased from Google Domains, and my goal is to use it for a website that I have deployed via Firebase hosting.

I am able to access my site via https://my-domain.com and my-domain.com, but I would also like to access it via www.my-domain.com. I think that a CNAME record is required, so I added one.

enter image description here

But when I navigate to www.my-domain.com, it warned me that my connection wasn't secure. after proceeding through the warning I see the following:

enter image description here

What am I missing?



Solution 1:[1]

Update 2022: You can do redirect now, after you add my-domain.com, Firebase also gonna recommend you whether to also redirect www.my-domain.com to my.domain.com

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Vugar Abdullayev