1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
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.
beantwortet vor 4 Jahren
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 3 Jahren