1 Answer
- Newest
- Most votes
- Most comments
0
Well, I seemed to have resolved the issue.
I was using Axios to call the API Gateway and COgnito to authenticate.
As I said, immediately after sign-in, everything worked fine that way, but after an hour, it stopped working and I got a bogus CORS error.
After reading more on the Amplify docs here https://docs.amplify.aws/lib/restapi/getting-started/q/platform/js
I decided to use that instead of Axios to call the API Gateway. When I did that, everything works even hours after login. Not sure why that made a difference but it works, so I am happy for now.
answered 4 years ago
Relevant content
- asked 3 months ago
- asked 9 months ago
- asked a year ago
- asked 5 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago