1 Resposta
- Mais recentes
- Mais votos
- Mais comentários
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.
respondido há 4 anos
Conteúdo relevante
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há um ano