diff --git a/openstack-object-storage-dev/samples/object-assign-cors-header-req.txt b/openstack-object-storage-dev/samples/object-assign-cors-header-req.txt index fa86e67..df8a985 100644 --- a/openstack-object-storage-dev/samples/object-assign-cors-header-req.txt +++ b/openstack-object-storage-dev/samples/object-assign-cors-header-req.txt @@ -1,4 +1,4 @@ -PUT /
- Assigning CORS Headers to Requests + Assign CORS headers to requests CORS is a specification that stands for Cross-Origin Resource Sharing. It defines how browsers and servers communicate across origins using HTTP headers, such as @@ -678,35 +678,36 @@ read more about the definition of the Access-Control- response headers and Origin response header at www.w3.org/TR/access-control/. - - Access-Control-Allow-Credentials - - - Access-Control-Allow-Methods - - - Access-Control-Allow-Origin - - - Access-Control-Expose-Headers - - - Access-Control-Max-Age - - - Access-Control-Request-Headers - - - Access-Control-Request-Method - - - Origin - - - You can assign these headers to objects only. + >www.w3.org/TR/access-control/. + + + + + + + + + + + + + + + + + + + + + + + + +
Supported Headers
MetadataUse
X-Container-Meta-Access-Control-Allow-OriginOrigins to be allowed to make Cross Origin Requests, space separated.
X-Container-Meta-Access-Control-Max-AgeMax age for the Origin to hold the preflight results.
X-Container-Meta-Access-Control-Expose-HeadersHeaders exposed to the user agent (e.g. browser) in the the actual request response. Space separated.
+ + CORS metadata is held on the container only. The values given apply to the container itself and all objects within it. - Assign CORS Header HTTP Request + Assign CORS header request: HTTP In the example, the origin header is assigned that indicates where the file came from. This allows you to provide security that requests to your Object Storage @@ -714,6 +715,9 @@ origination: + You can find more details in the Swift Documentation.