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-test2OSS 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.
该文章对您有帮助吗?