我收到以下错误,当我使用AWS-SDK在angular2(打字稿) import * as AWS from 'aws-sdk';
AWS.config.credentials.get
[ts]
Property 'get' does not exist on type 'Credentials | CredentialsOptions'.
Prop
使用webpack运行开发服务器,我试图列出S3存储桶中的项目,并在浏览器中使用javascript aws-sdk控制台输出结果。 这样做时,我得到这个错误: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://bucketname.s3.ama