Torch Object Storage
Parameter | Required | Description |
Parameter | Required | Description |
Origin | Yes | Specifies the allowed origins of CORS requests. Constraints:
|
Operation methods | Yes | Specifies the allowed cross-origin request methods. You can select one or more, including PUT, GET, POST, DELETE, and HEAD. |
Allow-Headers | No | Specifies the allowed headers in CORS responses. Constraints:
|
Expose-Headers | No | Specifies which headers can be exposed to the client in CORS responses. Constraints:
|
Cache Max-Age | No | Indicates how long the results of an OPTIONS request can be cached, in seconds. The default is 3,600 seconds. |
Return Vary:Origin | No | Sets whether to return the Vary: Origin response header. We recommend enabling Return Vary: Origin when handling both CORS and non-CORS requests from browsers to prevent potential CORS errors. warning Enabling Return Vary: Origin may increase the number of visits or CDN back-to-origin requests. |