MENU
      GetBucketCORS

        GetBucketCORS


        Article summary

        Available in Classic and VPC

        View information about the Cross-Origin Resource Sharing (CORS) settings applied to the bucket. No request body is used for the operation.

        Requests

        The following describes the request format for the endpoint. The request format is as follows.

        MethodURI
        GET/{bucket-name}

        Request syntax

        The request syntax is as follows.

        GET https://{endpoint}/{bucket-name}?cors= # path style
        GET https://{bucket-name}.{endpoint}?cors= # virtual host style
        HTTP

        Request headers

        For headers common to all Object Storage APIs, see Object Storage common request headers.

        Request path parameters

        The following describes the parameters.

        FieldTypeRequiredDescription
        bucket-nameStringRequiredName of the bucket to view CORS settings information for

        Request query parameters

        The following describes the parameters.

        FieldTypeRequiredDescription
        corsStringRequiredDeclare retrieval of CORS applied to the bucket
        • Enter only keys without values

        Request example

        The following is a sample request.

        GET /apiary?cors= HTTP/1.1
        Authorization: {authorization-string}
        x-amz-date: 20161011T190354Z
        Host: kr.object.ncloudstorage.com
        HTTP

        Responses

        The following describes the response format.

        Response headers

        For response headers common to all Object Storage APIs, see Object Storage common response headers.

        Response status codes

        For response status codes common to all Object Storage APIs, see Object Storage response status codes.

        Response example

        The following is a sample response.

        HTTP/1.1 200 OK
        Date: Wed, 5 Oct 2016 15:20:30 GMT
        Accept-Ranges: bytes
        x-amz-request-id: 0b69bce1-8420-4f93-a04a-35d7542799e6
        Content-Type: application/xml
        Content-Length: 123
        HTTP
        <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
        XML

        Was this article helpful?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.