I have deployed an Angular web site to an AWS using an S3 bucket for static web hosting, Route53, an Amazon SSL certificate and cloudfront. The main domain name will work ie "mysite.com" , but if I have a sign on error or refresh a page with for example "mysite.com/auth" or "mysite.com/shops" I get "access denied" and I can not view my site.
The S3 bucket is public access and I have granted public access to all the objects in it.
I have requested an Amazon certificate for this site mysite.com and www.mysite.com and *.mysite.com.
I have created a cloudfront distribution using the certificate created above and added mysite.com and www.mysite.com as alternate domains.
I have use the cloudfront option to create the cname records in Route53.
As mentioned above the domain name mysite.com works but if a path is appended like /auth I get access denied.
This is drivin me mad so any help would be appreciated I am sure the solution is simple but I can not find it anywhere.
Thanks in advance.