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.

Request

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.

Headers

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

Response

Headers

A response can only contain common response headers.

Response codes

For a list of possible responses, see Responses.