Applies a CORS (cross-origin resource sharing) configuration to a bucket.
Declaration Syntax
C# |
public PutCORSConfigurationResponse PutCORSConfiguration( PutCORSConfigurationRequest request )
Parameters
- request (PutCORSConfigurationRequest)
- The PutCORSConfigurationRequest that defines the parameters of the operation.
Return Value
Returns a PutCORSConfigurationResponse from S3.
Remarks
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/
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | |
WebException | |
AmazonS3Exception |