The following GET bucket request returns a CORS subresource from a bucket (namespace) named finance.
Note: Each S3 compatible request must be authenticated by the S3 gateway. You do this by using the HTTP Authorization request header with either a signature string, an AWS Version 2 or Version 4 authentication string, or by anonymous access.
Request headers
GET /?cors HTTP/1.1 Host:finance.europe.hcp.example.com Date: Tue, 14 May 2019 2 17:54:50 GMT Authorization: SignatureString
Response headers
HTTP/1.1 200 OK Date: Tue, 14 May 2019 19:14:42 GMT Server: HCP Content-Length: 280
Response body
<CORSConfiguration> <CORSRule> <AllowedOrigin>http://www.example.com</AllowedOrigin> <AllowedMethod>PUT</AllowedMethod> <AllowedMethod>POST</AllowedMethod> <AllowedMethod>DELETE</AllowedMethod> <AllowedHeader>*</AllowedHeader> <MaxAgeSeconds>3000</MaxAgeSec> <ExposeHeader>ETag</ExposeHeader> </CORSRule> <CORSRule> <AllowedOrigin>*</AllowedOrigin> <AllowedMethod>GET</AllowedMethod> <AllowedHeader>*</AllowedHeader> <MaxAgeSeconds>3000</MaxAgeSeconds> </CORSRule> </CORSConfiguration>