Create S3 bucket CORS
Storage
Create S3 bucket CORS
deprecated
Configures Cross-Origin Resource Sharing (CORS) rules for an S3 bucket, allowing web applications from specified domains to access bucket resources directly from browsers.
Deprecated: Use PATCH /v4/`object_storages`/{`storage_id`}/buckets/{`bucket_name`} with {"cors": {"allowed_origins": [...]}} instead.
POST
Create S3 bucket CORS
Authorizations
API key for authentication. Make sure to include the word apikey, followed by a single space and then your token.
Example: apikey 1234$abcdef
Path Parameters
Unique identifier for the storage instance
Name of the S3 bucket to configure CORS for
Body
application/json
CORS configuration for the bucket
List of allowed origins for CORS requests
Example:
[
"https://example.com",
"https://app.example.com",
"*"
]