GetBucketCORS

Prev Next

개요

제공되는 파라미터와 함께 버킷에 GET 요청을 보내면 요청한 버킷에 적용된 CORS(cross-origin resource sharing) 설정 정보를 조회합니다.

구문

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

예시

요청 예시

다음은 이름이 'apiary'인 버킷에 적용된 CORS 설정 조회를 요청하는 예입니다.

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

응답 예시

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
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>