我收到以下錯誤,當我使用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