Object storage
Bucket operation
GetBucketCORS
Returns the bucket's cross-origin rules.
GET404 on successluzon
Request
Request line
GET https://<bucket>-<appid>.cos.luzon.convergecloudcos.com/?corsAddressed at the bucket host, <bucket>-<appid>.cos.luzon.convergecloudcos.com, where <appid> is the account AppId.
Query parameters: cors. Every query parameter in the request must also be named in q-url-param-list and covered by the signature.
Behaviour
A bucket with no CORS configuration answers 404 NoSuchCORSConfiguration. That is the normal state of a new bucket, not a failure — a browser cannot read the bucket until rules are set.
Example
curl
curl -X GET \
-H "Authorization: q-sign-algorithm=sha1&q-ak=…&q-signature=…" \
"https://<bucket>-<appid>.cos.luzon.convergecloudcos.com/?cors"Response — 404
<?xml version='1.0' encoding='utf-8' ?>
<Error>
<Code>NoSuchCORSConfiguration</Code>
<Message>The CORS configuration does not exist</Message>
<Resource>example-bucket-1250000000.cos.luzon.convergecloudcos.com</Resource>
<RequestId>NmFhYmNhYzVfNGUxMjMyMGFfNmYzZGNfNjU1ZTY0</RequestId>
</Error>