aws s3api put-bucket-cors
This operation is not supported for directory buckets. AWS CLI reference
5 options Its page in the AWS CLI reference
Options
--bucketSpecifies the bucket impacted by the corsconfiguration.--checksum-algorithmIndicates the algorithm used to create the checksum for the request when you use the SDK.--content-md5The Base64 encoded 128-bit MD5 digest of the data.--cors-configurationDescribes the cross-origin access configuration for objects in an Amazon S3 bucket.--expected-bucket-ownerThe account ID of the expected bucket owner.