Set CORS configuration

Describes how to set the Cross-Origin Resource Sharing (CORS) configuration for your bucket.

CORS allows a client web application on one domain to interact with resources in a different domain.

Setting the CORS configuration allows the bucket to service cross-origin requests.

This operation can be performed using mc commands or AWS S3 CLI commands.

Using the CLI

Use the mc cors set command to set the CORS configuration for your bucket.

Or you can use the AWS S3 CLI command to perform this task. See put-bucket-cors.