Aws-sdk-js: Cors error - sdk js and datasync

Created on 9 Sep 2020  路  3Comments  路  Source: aws/aws-sdk-js

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

92264227-86fc8f00-eea3-11ea-84a3-1b458fa00fa8

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

guidance needs-triage

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.

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings