Confirm by changing [ ] to [x] below:
i have this code.
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 });
the CognitoIdentityCredentials work麓s without problem, return the user session info.
but when call datasync describeTaskExecution method, return this error

the IAM Policies already have permission to datasync methods, but whyt cors?, where i config datasync cors
for the sdk js library I use https://sdk.amazonaws.com/builder/js/ with CognitoIdentify and aws DataSync
According to https://github.com/aws/aws-sdk-js/blob/master/SERVICES.md, this service doesn't allow CORS. I'm not sure this will work.
thanks
Closing this issue now, please reach out if you have any additional questions.
Most helpful comment
According to https://github.com/aws/aws-sdk-js/blob/master/SERVICES.md, this service doesn't allow CORS. I'm not sure this will work.