--- title: "put-bucket-cors" slug: "cli-objectstorage-api-level-put-bucket-cors" updated: 2026-09-17T09:16:11Z published: 2026-09-17T09:16:11Z canonical: "cli.ncloud-docs.com/cli-objectstorage-api-level-put-bucket-cors" --- > ## Documentation Index > Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # put-bucket-cors Classic/VPC 환경에서 이용 가능합니다. 버킷에 CORS 규칙을 설정합니다. ## 구문 `put-bucket-cors` 구문은 다음과 같습니다. ``` aws s3api put-bucket-cors \ --bucket \ --cors-configuration \ --endpoint-url ``` ## 옵션 `put-bucket-cors` 실행 시 지정할 수 있는 옵션을 설명합니다. ### 필수 옵션 `put-bucket-cors`의 필수 옵션입니다. | 옵션 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `--bucket` | String | Required | 버킷 이름 | | `--cors-configuration` | String | Required | CORS 설정 - `CORSRules` 목록에 규칙을 포함하여 지정 - 최대 100개 규칙 가능 | ### 공통 옵션 `aws` 명령에서 공통으로 사용하는 옵션에 대한 정보는 [Object Storage 옵션](/docs/guide-objectstorage#%EC%98%B5%EC%85%98)을 참조해 주십시오. ## 예시 CORS 규칙 설정 요청이 성공하면 규칙이 적용되며 결과는 출력되지 않습니다. ### 명령 명령 예시는 다음과 같습니다. ``` aws s3api put-bucket-cors --bucket my-test-bucket \ --cors-configuration file://cors.json \ --endpoint-url=https://kr.object.ncloudstorage.com ```