0034-00000001

更新时间:
复制 MD 格式

Problem description

No cross-origin resource sharing (CORS) rule is configured for the bucket.

Causes

The bucket has no CORS rules. When you call GetBucketCors on a bucket with no CORS rules, OSS returns this error.

Examples

The following request triggers this error when the target bucket has no CORS rules:

GET /?cors HTTP/1.1
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Date: GMT Date
Authorization: SignatureValue

Solutions

Add at least one CORS rule to the bucket before calling GetBucketCors. For configuration instructions, see CORS.

References