--- title: "PutBucketCORS" slug: "storage-objectstorage-putbucketcors" tags: ["Object Storage"] updated: 2026-09-17T10:12:27Z published: 2026-09-17T10:12:27Z canonical: "api.ncloud-docs.com/storage-objectstorage-putbucketcors" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # PutBucketCORS Available in Classic and VPC Create new Cross-Origin Resource Sharing (CORS) settings or edit existing settings to apply to buckets in Object Storage. Applying ACLs allows you to grant different sets of permissions to different storage accounts based on the account's identity or by using a predefined ACL (default ACL). ## Requests The following describes the request format for the endpoint. The request format is as follows. | Method | URI | | --- | --- | | PUT | {bucket-name} | ### Request syntax The request syntax is as follows. ``` PUT https://{endpoint}/{bucket-name}?cors= # path style PUT https://{bucket-name}.{endpoint}?cors= # virtual host style ``` ### Request headers The following describes the bucket ACL settings API headers. For headers common to all Object Storage APIs, see [Object Storage common headers](/docs/en/storage-objectstorage#%EA%B3%B5%ED%86%B5%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94). Note The Content-MD5 header is required to create a Cross-Origin Resource Sharing (CORS) setting or edit an existing setting. ### Request path parameters The following describes the parameters. | Field | Type | Required | Description | | --- | --- | --- | --- | | `bucket-name` | String | Required | Name of the bucket to create or edit CORS on | ### Request query parameters The following describes the parameters. | Field | Type | Required | Description | | --- | --- | --- | --- | | `cors` | String | Optional | Set or edit Cross-Origin Resource Sharing (CORS) | ### Request body The XML block that defines the core elements of CORS (AllowedOrigin, AllowedMethod) has the following two payload elements. | Element Name | Required | Type | Restrictions | Description | | --- | --- | --- | --- | --- | | `MaxAgeSeconds` | - | String | - | Maximum response time (in seconds) for a pre-flight OPTIONS request for the specified resource | | `ExposeHeader` | - | String | - | Define headers to be displayed to external applications | ### Request example The following is a sample request. ``` GET /{bucket-name}?cors= HTTP/1.1 Content-Type: text/plain Host: kr.object.ncloudstorage.com X-amz-date: {Timestamp} x-amz-content-sha256: {hash-string} Content-MD5: {md5-string} Authorization: {authorization-string} Content-Length: 237 ``` ``` http://www.example.com POST GET PUT DELETE HEAD * ETag ``` ## Responses The following describes the response format. ### Response headers For response headers common to all Object Storage APIs, see [Object Storage common response headers](/docs/en/storage-objectstorage#%EA%B3%B5%ED%86%B5%EC%9D%91%EB%8B%B5%ED%97%A4%EB%8D%94). ### Response status codes For response status codes common to all Object Storage APIs, see [Object Storage response status codes](/docs/en/storage-objectstorage#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C). ### Response example The following is a sample response. ``` HTTP/1.1 200 OK Date: Wed, 24 Aug 2016 17:45:25 GMT x-amz-request-id: xxxxx-xxxxx-xxxxx-xxxxx-xxxxx Content-Length: 0 ```