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. Configurations can't contain more than 100 rules.
Request
PUT /{bucket}?cors HTTP/1.1
Path parameters
Parameter | Description |
---|---|
bucket |
Bucket name. |
Query parameters
Parameter | Description |
---|---|
cors |
Required parameter that indicates the type of operation. |
Headers
Use the necessary common request headers in requests.
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
Responses can only contain common response headers.
Response codes
For a list of possible responses, see Responses.