CORS
When a user's browser requests a bucket, it declares the domain, request method, and headers in the request. Using Cross-Origin Resource Sharing (CORS) technology, you can restrict access to objects in a bucket based on the values of these parameters.
To use CORS, the technology must be supported by both the storage and the user's browser; CORS support is enabled by default in modern browsers.
For CORS to work, Virtual-Hosted addressing must be enabled.
You can set up the CORS configuration in the control panel or upload an XML configuration file via the S3 API.
CORS parameters
Configure CORS
You can add up to 100 CORS rules.
- In the control panel, in the top menu, click Products and select S3.
- Go to the Buckets section.
- Open the bucket page → CORS tab.
- Click Create rule.
- Set up the CORS rule parameters.
- Optional: to add another rule, click Add rule.
- Click Create.