CORS error when hitting generateEmbedUrlForRegisteredUser API through AWS Quicksight SDK

Hi Team/ @Sanjeeb2022 ,

I have followed the QuickSight Developer Portal and coded for embedded console, Now when the code hits the generateEmbedUrlForRegisteredUser from my react app i am getting the CORS error.

I am using aws-quicksight-sdk and coded in JS on my React App the same from generateEmbedUrlForRegisteredUser then ran the application from my local, as well as I have deployed the app to aws amplify and tried running, I am getting the following error. Can someone please help me on resolving the issue?

Acess to XMLHttpRequest at ‘’ from origin 'http://localhost:3000’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
xhr.js:81 POST net::ERR_FAILED

Hi @kodimalar.sakthivel - Is it possible to raise a ticket to AWS Customer support to investigate this issue. You need to generate some detail network loggings to understand where is the permission issue.

Please post the discussion outcomes with AWS and share here so that we all get more information around this issue.

Regards - Sanjeeb

1 Like