Receive AccessDenied when trying to access a reload or refresh or one in new tab in angular 5

S3 doesn’t understand route open when you reload and open in new tab. You need to tell S3 is for this route used index.html.Whenever new route open its gives 403 [access denied ] error. for this you need to do setting CloudFront to set 403 error page redirect to index.html Go to aws cloud front … Read more

Cloudfront redirect www to naked domain with ssl [closed]

To host website on AWS so that: https://www.example.com, http://www.example.com and http://example.com all redirect to https://example.com you need to: Create two S3 buckets named: example.com and www.example.com. Turn on the Static Website Hosting on these two buckets. Configure redirect in bucket www.example.com to: https://example.com. In the bucket properties choose Static Website Hosting => Redirect all requests … Read more

Correct S3 + Cloudfront CORS Configuration?

On June 26, 2014 AWS released proper Vary: Origin behavior on CloudFront so now you just Set a CORS Configuration for your S3 bucket including <AllowedOrigin>*</AllowedOrigin> In CloudFront -> Distribution -> Behaviors for this origin Allowed HTTP Methods: +OPTIONS Cached HTTP Methods +OPTIONS Cache Based on Selected Request Headers: Whitelist the Origin header. Wait for … Read more

CloudFront + S3 Website: “The specified key does not exist” when an implicit index document should be displayed

I’ll go out on a limb and say that the specified key doesn’t technically exist, so the error message is technically accurate but doesn’t tell the whole story. This should be an easy fix. S3 buckets have two¹ endpoints, “REST” and “website.” They have two different feature sets. The web site endpoint provides magical resolution … Read more