I have a Netlify site hosted at say xxx.netlify.app. Now I bought a domain at Namecheap. To make it point to the netlify app, I set a ALIAS DNS record to xxx.netlify.app.
But on accessing the Namecheap domain site, I get the
NET::ERR_CERT_COMMON_NAME_INVALID error on Chrome.
It also says:
You cannot visit xxx.dev right now because the website uses HSTS. Network errors and attacks are usually temporary, so this page will probably work later.
Now I know that I could change the Namecheap nameservers to the ones Netlify recommends for custom domains. But I would like to do it without that because, by the looks of it, I think
ALIAS record should have worked.
What am I doing wrong here?