1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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.
con risposta 4 anni fa
Contenuto pertinente
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata un anno fa