Accessing Pinpoint API from the browser

0

Hi all,

I would like to access the pinpoint API directly from the browser , I am using Cognito User Pools with federated Identity.

I am getting CORS errors even if the requests are signed correctly (with proper permissions for authenticated roles).

Is that possible even though https://github.com/aws/aws-sdk-js/blob/master/SERVICES.md, the list says the pinpoint service does not allow CORS ?

The amplify analytics package is sending events to the pinpoint api so I guess it should be, no?

Thanks very much for the help

demandé il y a 5 ans235 vues
2 réponses
0
Réponse acceptée

The Amazon Pinpoint API has the appropriate CORS headers to call it from inside a browser as long as you provide the appropriate SIGv4 signing.

AWS
répondu il y a 5 ans
0

thanks for the info! the aws-sdk services readme is misleading then.

répondu il y a 5 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions