Amazon Simple Storage Service
API Reference (API Version 2006-03-01)

CORSRule

Contents

AllowedHeaders

Specifies which headers are allowed in a pre-flight OPTIONS request.

Type: Array of strings

Required: No

AllowedMethods

Identifies HTTP methods that the domain/origin specified in the rule is allowed to execute.

Type: Array of strings

Required: Yes

AllowedOrigins

One or more origins you want customers to be able to access the bucket from.

Type: Array of strings

Required: Yes

ExposeHeaders

One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object).

Type: Array of strings

Required: No

MaxAgeSeconds

The time in seconds that your browser is to cache the preflight response for the specified resource.

Type: Integer

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

On this page: