I have my serverless web app hosted on AWS amplify. I am getting Access Denied error XML if I try refreshing the page. When I look into the Console, it shows no output. The code works fine on localhost
, but will cause 403 error on live.
I have found a question that is very similar, except I did not use CloudFront.
How can I find a potential cause of this problem?
Update
I solved this, and I posted the answer in the answer section. However I now have a part 2 of this question.
How do I make it so that the client can directly call my URL like such:
https://URL.com/listing/LISTING_ID
Right now, if I try to call it directly while passing a LISTING_ID
the page errors out. Does this have anything to do with Isomorphic ReactJs?
I have tried using Digital Ocean as my web hosting service instead of AWS. The same error happens.