CORS
This document provides instructions to manage CORS using the CLI. Additionally, these tasks can also be performed using the DCD and API.
Prerequisites:
Set up the AWS CLI by following the installation instructions.
Make sure to consider the supported Endpoints.
Versioning must be enabled for source and destination buckets.
Commands
Get the CORS configuration for the bucket my-bucket
:
Set up CORS configuration for the bucket my-bucket
:
Sample CORS request
For more information, see put-bucket-cors command reference.
Last updated