Skip to content

Commit

Permalink
Add Custom error response to Cloudfront distribution to allow page re…
Browse files Browse the repository at this point in the history
…freshing
  • Loading branch information
gfaires committed Nov 20, 2023
1 parent 746bb2b commit 249f03c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aws/cloudformation-templates/base/cloudfront.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 249f03c

Please sign in to comment.