Help Center/ Object Storage Service/ SDK Reference/ C/ Parameters/ Request Parameters for Configuring CORS for a Bucket
Updated on 2026-08-03 GMT+08:00

Request Parameters for Configuring CORS for a Bucket

Table 1 List of request parameters

Parameter

Type

Mandatory (Yes/No)

Description

options

const obs_options *

Yes

The context of the requested bucket. Refer to Configuring option (SDK for C) to set the AK, SK, endpoint, bucket, timeout, and temporary credentials through obs_options.

obs_cors_conf_info

obs_bucket_cors_conf *

Yes

CORS rule content.

conf_num

unsigned int

Yes

Number of array members in the array obs_cors_conf_info.

handler

obs_response_handler *

Yes

A callback structure where all members are pointers to callback functions, used to set the callback functions that handle response data. You can set a callback function to copy the response data from the server to your custom callback_data.

callback_data

void *

No

Custom callback data.