Applies a CORS (cross-origin resource sharing) configuration to a bucket.
| C# |
public PutCORSConfigurationResponse PutCORSConfiguration( PutCORSConfigurationRequest request )
- request (PutCORSConfigurationRequest)
- The PutCORSConfigurationRequest that defines the parameters of the operation.
Returns a PutCORSConfigurationResponse from S3.
You set this configuration on a bucket so that the bucket can service cross-origin requests.
If a configuration already exists for the specified bucket, the new configuration will replace the existing configuration.
For more information on CORS configurations, refer: http://docs.amazonwebservices.com/AmazonS3/latest/dev/
| Exception | Condition |
|---|---|
| ArgumentNullException | |
| WebException | |
| AmazonS3Exception |