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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南