Closed nicosli closed 3 years ago
Hey @nicosli thank-you for reaching out to us with your issue, I am seeing the similar error while reproducing this, let me confirm with the service team if they support CORS for connect or not.
Hey @nicosli thank-you for reaching out to us with your issue, I am seeing the similar error while reproducing this, let me confirm with the service team if they support CORS for connect or not.
Hi, do you have news?
Same problem here but with datasync
AWS.config.region = 'us-east-1'; AWS.config.credentials = new AWS.CognitoIdentityCredentials({IdentityPoolId: 'MyPoolId'}); var datasync = new AWS.DataSync(); var params = { TaskExecutionArn: 'taskARN' }; datasync.describeTaskExecution(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
result
How to solve this, i am also facing same issue
To solve the issue you might want to use, API gateway. Which is basically creating a proxy which will call the Connect or datasync API and then the browser can make calls to that.
Greetings! We’re closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or open a new issue.
I have this code in my vue project:
And the result is
Access to XMLHttpRequest at 'https://connect.us-west-2.amazonaws.com/users-summary/INSTANCE_ID?maxResults=10' from origin 'https://local.project.mx:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Response Header
SDK version number aws-sdk@2.656.0
Thank you in advance