1 Comment
Currently I am using a cloudfront distribution to serve my frontend. I am looking to use the same domain for backend too. For that I have added a behavior in cloudfront distribution. All the /api/* requests are mapped to go to an API gateway origin. However when I make the api call to /api/* path pattern, Im getting 404 Not found. The request is reaching cloudfront but not getting redirected to the api gateway.
I have verified for typos, origin path is empty and the api gateway url is functional. Am I missing something? I tried with both HTTP and REST APIs
replied 3 months ago
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 3 days ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 months ago