CORS error when hitting generate embed URl for registered user API through AWS Quicksight SDK

Hi Team ,

I am getting the error while embedding URLs in my React application. I have followed the documentation, and 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. I am getting the following error. Can someone please help me on resolving the issue?

Access to XMLHttpRequest at ‘https://quicksight.us-east-2.amazonaws.com/accounts/768612497542/embed-url/registered-user’ 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 https: //quicksight.us-east-2.amazonaws.com/accounts/768612497542/embed-url/registered-user net::ERR_FAILED

Hi @Sahanawaz ,

Thanks for posting your questions on the QuickSight Community Q&A Forum!

I would recommend to create a support ticket to analyze issue you are facing. Here are the steps for opening a support ticket - Creating support cases and case management - AWS Support .

With ticket you can try uploading HAR file for the error you got.

Thanks
Neeraj

1 Like