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

Torch Object Storage

Copy page
Download PDF
09-CORS
0009-00000005
Copy page
Download PDF
0009-00000005
Problem description​
CORS rule is invalid.​
Root cause​
When users set bucket CORS rules, the value of AllowedMethods in the CORS rule is not PUT,GET,POST,HEAD, or DELETE.​
Example​
The value of AllowedMethods in the CORS rule is invalid when you configure bucket CORS.​
​
PUT /?cors HTTP/1.1​
Host: <Bucket name>.<TOS endpoint>​
Date: Fri, 30 Jul 2021 08:05:36 +0000​
Authorization: authorization xxx​
​
{​
"CORSRules":[{​
"AllowedOrigins":["http://www.example.com"],​
"AllowedMethods":["abc"],​
"AllowedHeaders":["*"],​
"ExposeHeaders":["x-tos-test"],​
"MaxAgeSeconds":1024}​
]​
}​
​
Solution​
Refer to PutBucketCORS and correctly construct the CORS rules to ensure the AllowedMethods values are valid.​
Last updated: 2026.07.31 18:35:06