I use GitHub pages to host React project, but when I add a custom domain I get a problem. The custom domain is taken on GoDaddy, I added all DNS records there. CNAME, A, and AAAA.
Also, I set redirection from non-www to www with a redirect option, because CNAME doesn't allow to use @ and to point to www. But when I access the website I get an SSL error problem that connection is not secure. GitHub shows the status "DNS check successful" so that part is done correctly.
When you enter the website it shows
This server could not prove that it is customdomain.com; its security certificate is from *.github.io. This may be caused by a misconfiguration or an attacker intercepting your connection.
I see that GoDaddy told that he will not forward SSL on this way. So that is my other option?
