CORS
CORS
When a container is accessed, the user's browser declares the domain, request method, and headers in the request. Using cross-domain request technology (CORS), you can restrict access to objects in the container based on the values of these parameters.
To use CORS, the technology must be supported by both the repository and the user's browser; by default, CORS support is included in modern browsers.
For CORS to work, there must be Virtual-Hosted addressing is enabled.
You can set up the CORS configuration in the control panel or download the XML configuration file via S3 API.
CORS Parameters
Set up the CORS configuration
You can add up to 100 CORS rules.
- In control panel go to Object Storage → Containers.
- Open the container page → tab CORS.
- Click Create a rule.
- Set it up CORS rule parameters.
- Optional: to add another rule, press Add rule.
- Click Create.