upload method

Uploads a CORS configuration for a bucket. It replaces any existing configuration.

A CORS configuration is an XML file no larger than 64 KB. A configuration may contain no more than 100 rules.


PUT /{bucket}?cors HTTP/1.1

Path parameters

Parameter Description
bucket Name of the bucket.

Query parameters

Parameter Description
cors Mandatory parameter to indicate the type of operation.


In a request, use the necessary common request headers.

The Content-MD5 header is required.

Data schema

A CORS configuration is passed as an XML document. For the schema description, see CORS configuration of buckets



A response can only contain common response headers.

Response codes

For a list of possible responses, see Responses.