0

we have a single page app in ReactJS that is being served by CloudFront but the response status continues to be 404 for any nested pages (i.e pages other than the home page).

How can this be resolved? Attached snapshot

enter image description here

1
  • Seems like an issue with Credentials. Did you double check them?
    – Sandun
    Jul 14 at 6:14
1

you can catch an error like 404 and redirect it to 200 and your index.html with custom error pages in cloudfront like shown here https://www.youtube.com/watch?v=gBkysF8_-Es

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.