0003-00000601

更新时间:
复制 MD 格式

Problem description

Cross-origin resource sharing (CORS) is not enabled for the bucket.

Causes

CORS is not enabled for the bucket that received the OPTIONS request.

Examples

The following OPTIONS preflight request is sent to the oss-example bucket:

OPTIONS /testobject HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 24 Feb 2012 05:45:34 GMT
Origin:http://www.example.com
Access-Control-Request-Method:PUT
Access-Control-Request-Headers:x-oss-test1,x-oss-test2

OSS returns this error because CORS is not enabled for the bucket.

Solutions

If you own the bucket, enable CORS for it. For more information, see CORS.