Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Custom error response to Cloudfront distribution to allow page refresh #519

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

gfaires
Copy link
Contributor

@gfaires gfaires commented Nov 20, 2023

Issue #, if available:
#456
Description of changes:
Created custom error response to intercept 403 errors and convert into a 200 /index.html. This allows you to perform a page refresh, that currently doesn't work as the frontend is an SPA.
Description of testing performed to validate your changes (required if pull request includes CloudFormation or source code changes):
Tested cloudfront deployment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Contributor

@BastLeblanc BastLeblanc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quite test on a running instance, LGTM. That's going to help demos !

@BastLeblanc BastLeblanc merged commit 142d0b6 into aws-samples:master Nov 20, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Shipped
Development

Successfully merging this pull request may close these issues.

Cloudfront "Access Denied" when refreshing page outside of home page
2 participants