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

Torch Object Storage

Copy page
Download PDF
09-CORS
0009-00000006
Copy page
Download PDF
0009-00000006
Problem description​
CORS rule is invalid.​
Root cause​
When setting bucket CORS rules, the user enters an invalid value for AllowedHeaders, such as using more than one asterisk (*).​
Example​
You configured the bucket CORS with an invalid value for AllowedHeaders.​
​
PUT /?cors HTTP/1.1​
Host: <Bucket name>.<TOS endpoint>​
Date: Fri, 30 Jul 2021 08:05:36 +0000​
Authorization: authorization string​
​
{​
"CORSRules":[{​
"AllowedOrigins":["http://www.example.com"],​
"AllowedMethods":["PUT"],​
"AllowedHeaders":["*.*"],​
"ExposeHeaders":["x-tos-test"],​
"MaxAgeSeconds":1024}​
]​
}​
​
Solution​
Refer to PutBucketCORS. Construct the CORS rules correctly to ensure the AllowedHeaders value is valid.​
Last updated: 2025.10.11 17:59:19