You need to enable JavaScript to run this app.
文档中心
对象存储

对象存储

复制全文
下载 pdf
09-CORS
0009-00000002
复制全文
下载 pdf
0009-00000002
问题描述​
CORS 规则非法。​
问题原因​
用户设置桶 CORS 规则时,CORS 规则中缺少 AllowedOrigins 。​
问题示例​
您配置桶 CORS 时,CORS 规则中缺少 AllowedOrigins 。​
​
PUT /?cors HTTP/1.1​
Host: bucketname.tos-cn-beijing.volces.com​
Date: Fri, 30 Jul 2021 08:05:36 +0000​
Authorization: authorization xxx​
​
{​
"CORSRules":[{​
"AllowedMethods":["PUT", "GET"],​
"AllowedHeaders":["Authorization"],​
"ExposeHeaders":["x-tos-test"],​
"MaxAgeSeconds":1024}​
]​
}​
​
解决方案​
参见 PutBucketCORS,正确构造 CORS 规则,确保存在 AllowedOrigins。​
​
最近更新时间:2026.09.20 16:18:57
这个页面对您有帮助吗?
有用
有用
无用
无用