1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
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 hace 4 años
Contenido relevante
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace 3 años