In this blog post, we are going to discuss how to handle Access Denied when the Angular webpage hosted on AWS S3.

How Angular Page is served?

All the secured website are served via this purpose only.

How to handle Access Denied on reload/refresh?

For this you have to open your CloudFront distribution settings and have to handle 403 and 404 error and point these on your same index.html page, also you need to add HTTP Response Code (200) as shown in below screenshot.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.