--- title: "put-bucket-cors" slug: "cli-objectstorage-api-level-put-bucket-cors" updated: 2026-10-08T05:01:46Z published: 2026-10-08T05:01:46Z 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 Available in Classic and VPC Configure CORS rules for a bucket. ## Syntax The `put-bucket-cors` syntax is as follows: ``` aws s3api put-bucket-cors \ --bucket \ --cors-configuration \ --endpoint-url ``` ## Options This section describes the options available when running `put-bucket-cors`. ### Required options The following options are required for `put-bucket-cors`. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--bucket` | String | Required | Bucket name | | `--cors-configuration` | String | Required | CORS settings - Specify rules by including them in the `CORSRules` list. - Up to 100 rules can be specified. | ### Common options For information about the options common to all `aws` subcommands, see [Object Storage options](/docs/en/guide-objectstorage#%EC%98%B5%EC%85%98). ## Examples If the request to set a CORS rule is successful, the rule is applied, and no result is displayed. ### Command The command example is as follows: ``` aws s3api put-bucket-cors --bucket my-test-bucket \ --cors-configuration file://cors.json \ --endpoint-url=https://kr.object.ncloudstorage.com ```