Object Storage Service


Object Storage Service

Get Bucket cors


Return cors configuration information in the specified Bucket, which is only available to the Owner of Bucket.



GET /?cors HTTP/1.1
Host: <BUCKET_NAME>.s3.<REGION>.jdcloud-oss.com
Date: <date>
Authorization: <authorization string> (see Authenticating Requests (AWS Signature Version4))

Request Parameter

No Request Parameters

Request Header

No Special Request Header

Request Elements

No Request Elements


Response Header

No Special Response Header

Response Element

Name Description
CORSConfiguration Set of CORSrule Elements, which is 100 Nr. at most.
Type: Container
Children: CORSRules
Ancestor: None
CORSRule Allowed Sources and Methods. 100 Nr. at most.
Type: Container
Children: AllowedOrigin, AllowedMethod, MaxAgeSeconds, ExposeHeader, ID.
Ancestor: CORSConfiguration
ID ID of Unique Identifier of Each Rule. Maximum characters of ID is 255.
Type: String
Ancestor: CORSRule
AllowedMethod HTTP Method allowing Source Execution.
Ancestor: CORSRule
AllowedOrigin Allow source of cross-origin request, which supports wildcard "*" and at most contains one wildcard
Type: String
Ancestor: CORSRule
AllowedHeader Specified Header allowed by Access-Control-Request-Headers in the pre-request. OSS will return allowed Header in the request.
Type: String
Ancestor: CORSRule
MaxAgeSeconds Specified response time of pre-request of OSS in browser cache, 1 Nr. at most
Type: Integer (seconds)
Ancestor: CORSRule
ExposeHeader The header list exposed to the browser, i.e., response header that users access from the application.
Type: String
Ancestor: CORSRule


Request Example

GET /?cors HTTP/1.1
Host: <BUCKET_NAME>.s3.<REGION>.jdcloud-oss.com
Date: Tue, 13 Dec 2011 19:14:42 GMT
Authorization: <authorization string>

Response Example

HTTP/1.1 200 OK
x-amz-request-id: 0CF038E9BCF63097
Date: Tue, 13 Dec 2011 19:14:42 GMT
Server: JDCloudOSS
Content-Length: 280

Update Time:2019-05-28 16:47:17