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

已提问 5 年前235 查看次数
2 回答
0
已接受的回答

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
已回答 5 年前
0

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

已回答 5 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则