STS临时授权 临时授权访问
我用阿里云的STS服务,从服务端拿到sts后,前端js调不通:返回
Error xml:
InvalidPolicyDocument
Invalid Policy: Unexpected: 'Statement'
5C8C61CC31A133271231D9DA
zq201810-test.oss-cn-hangzhou.aliyuncs.com
我的policy配置如下:
{ 'Version': '1', 'Statement': [ { 'Action': [ 'oss:GetObject', 'oss:PutObject', 'oss:DeleteObject', 'oss:ListParts', 'oss:AbortMultipartUpload', 'oss:ListObjects' ], 'Effect': 'Allow', 'Resource': ['acs:oss:*:*:zq201810-test/*', 'acs:oss:*:*:zq201810-test'], 'Condition': {} } ]}
赞0
踩0