diff --git a/aws/cloudformation-templates/base/cloudfront.yaml b/aws/cloudformation-templates/base/cloudfront.yaml index 88f30605c..41ffdbf9a 100644 --- a/aws/cloudformation-templates/base/cloudfront.yaml +++ b/aws/cloudformation-templates/base/cloudfront.yaml @@ -106,6 +106,10 @@ Resources: DistributionConfig: Enabled: true Comment: !Sub 'Retail Demo Store CDN for ${WebUIBucket}' + CustomErrorResponses: + - ErrorCode: 403 + ResponseCode: 200 + ResponsePagePath: /index.html DefaultRootObject: index.html PriceClass: PriceClass_100 HttpVersion: http2and3