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