Skip to main content
POST
/
storage
/
provisioning
/
v1
/
storage
/
{storage_id}
/
s3
/
bucket
/
{bucket_name}
/
cors
Create S3 bucket CORS
curl --request POST \
  --url https://api.gcore.com/storage/provisioning/v1/storage/{storage_id}/s3/bucket/{bucket_name}/cors \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "allowedOrigins": [
    "https://example.com",
    "https://app.example.com",
    "*"
  ]
}
'
This response has no body data.

Authorizations

Authorization
string
header
required

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

storage_id
integer<int64>
required

Unique identifier for the storage instance

bucket_name
string
required

Name of the S3 bucket to configure CORS for

Body

application/json

CORS configuration for the bucket

allowedOrigins
string[]

List of allowed origins for CORS requests

Example:
[
"https://example.com",
"https://app.example.com",
"*"
]

Response