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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠