Torch Object Storage
Name | Location | Type | Required | Sample value | Note |
Name | Location | Type | Required | Sample value | Note |
cors | Query | String | Yes | - | Identifies a PutBucketCORS request. |
Content-MD5 | Header | String | No | XrY7u+Ae7tCTyyK7j1rNww== | Base64-encoded MD5 digest of the message body. |
Name | Type | Required | Example value | Note |
Name | Type | Required | Example value | Note |
CORSRules | Array | Yes | - | The CORS rule information. |
AllowedOrigins | Array | Yes | ["*"] | Specify the allowed origins of cross-origin requests. Constraints:
|
AllowedMethods | Array | Yes | ["PUT", "GET"] | Specify the allowed cross-origin request methods, one or more can be specified, including PUT, GET, POST, DELETE, and HEAD. |
AllowedHeaders | Array | No | ["Authorization"] | Specifies the allowed cross-origin request headers. Constraints:
|
ExposeHeaders | Array | No | ["x-tos-request-id"] | Specify additional headers in CORS responses exposed to clients to provide extra information. Constraints:
warning It is generally recommended to add the X-Tos-Request-Id and ETag headers. |
MaxAgeSeconds | Integer | No | 1024 | Indicates how long the results of an OPTIONS request can be cached, in seconds. The default is 3600. |
ResponseVary | Bool | No | false | Return Vary: Origin header?
warning Enabling Return Vary: Origin may increase the number of visits or CDN back-to-origin requests. |