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

Torch Object Storage

Copy page
Download PDF
09-CORS
0009-00000007
Copy page
Download PDF
0009-00000007
Problem description​
CORS rule is invalid.​
Root cause​
The user set the bucket CORS rule with MaxAgeSeconds less than 0 in the CORS rule.​
Example​
When configuring bucket CORS, the MaxAgeSeconds value in the CORS rule is less than 0.​
​
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":-1}​
]​
}​
​
Solution​
Refer to PutBucketCORS to correctly construct the CORS rule and ensure the MaxAgeSeconds value is valid.​
Last updated: 2025.10.11 17:59:18