You need to enable JavaScript to run this app.
Torch Object Storage

Torch Object Storage

Copy page
Download PDF
09-CORS
0009-00000003
Copy page
Download PDF
0009-00000003
Problem description​
CORS rule is invalid.​
Root cause​
The user set an invalid value in the bucket CORS rule's AllowedOrigins, such as more than one asterisk (*).​
Example​
When configuring the bucket CORS, the value of AllowedOrigins in the CORS rule is invalid.​
​
PUT /?cors HTTP/1.1​
Host: <Bucket name>.<TOS endpoint>​
Date: Fri, 30 Jul 2021 08:05:36 +0000​
Authorization: authorization xxx​
​
{​
"CORSRules":[{​
"AllowedOrigins":["*.*"],​
"AllowedMethods":["PUT", "GET"],​
"AllowedHeaders":["Authorization"],​
"ExposeHeaders":["x-tos-test"],​
"MaxAgeSeconds":1024}​
]​
}​
​
Solution​
Refer to PutBucketCORS to correctly construct CORS rules and ensure the values of AllowedOrigins are valid.​
Last updated: 2025.10.11 17:59:18