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

Torch Object Storage

Copy page
Download PDF
09-CORS
0009-00000002
Copy page
Download PDF
0009-00000002
Problem description​
Invalid CORS rule.​
Root cause​
When the user sets the bucket CORS rule, the rule is missing AllowedOrigins.​
Example​
When configuring the bucket CORS, the rule is missing AllowedOrigins.​
​
PUT /?cors HTTP/1.1​
Host: <Bucket name>.<TOS endpoint>​
Date: Fri, 30 Jul 2021 08:05:36 +0000​
Authorization: authorization xxx​
​
{​
"CORSRules":[{​
"AllowedMethods":["PUT", "GET"],​
"AllowedHeaders":["Authorization"],​
"ExposeHeaders":["x-tos-test"],​
"MaxAgeSeconds":1024}​
]​
}​
​
Solution​
Refer to PutBucketCORS. Properly construct the CORS rule and ensure AllowedOrigins is included.​
Last updated: 2025.10.11 17:59:18