GetBucketCors

Returns the CORS configuration information set for the bucket.

You must have Full ACL to be able to call this action.

The following operations are related to GetBucketCors:

Request Syntax

1GET /?cors HTTP/1.1
2Host: <BUCKET>.s3.tebi.io

The request uses the following URI parameters:

  • <BUCKET>: Bucket name for which to get the CORS configuration. Required.

Response Syntax

 1HTTP/1.1 200
 2Content-Length: ContentLength
 3
 4<?xml version="1.0" encoding="UTF-8"?>
 5<CORSConfiguration>
 6    <CORSRule>
 7        <AllowedHeader>string</AllowedHeader>
 8        ...
 9        <AllowedMethod>string</AllowedMethod>
10        ...
11        <AllowedOrigin>string</AllowedOrigin>
12        ...
13        <ExposeHeader>string</ExposeHeader>
14        ...
15        <ID>string</ID>
16        <MaxAgeSeconds>integer</MaxAgeSeconds>
17    </CORSRule>
18    ...
19</CORSConfiguration>

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in XML format by the service:

  • CORSConfiguration: Root level tag for the CORSConfiguration parameters.

  • CORSRule: A set of origins and methods (cross-origin access that you want to allow).

See Also

Refer here for more information.