class Aws::S3::Types::CORSRule
@see docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CORSRule AWS API Documentation
@return [Integer]
response for the specified resource.
The time in seconds that your browser is to cache the preflight
@!attribute [rw] max_age_seconds
@return [Array<String>]
JavaScript ‘XMLHttpRequest` object).
able to access from their applications (for example, from a
One or more headers in the response that you want customers to be
@!attribute [rw] expose_headers
@return [Array<String>]
bucket from.
One or more origins you want customers to be able to access the
@!attribute [rw] allowed_origins
@return [Array<String>]
are `GET`, `PUT`, `HEAD`, `POST`, and `DELETE`.
An HTTP method that you allow the origin to execute. Valid values
@!attribute [rw] allowed_methods
@return [Array<String>]
requested headers that are allowed.
response to any preflight OPTIONS request, Amazon S3 returns any
header. These headers are allowed in a preflight OPTIONS request. In
Headers that are specified in the `Access-Control-Request-Headers`
@!attribute [rw] allowed_headers
@return [String]
characters.
Unique identifier for the rule. The value cannot be longer than 255
@!attribute [rw] id
}
max_age_seconds: 1,
expose_headers: [“ExposeHeader”],
allowed_origins: [“AllowedOrigin”], # required
allowed_methods: [“AllowedMethod”], # required
allowed_headers: [“AllowedHeader”],
id: “ID”,
{
data as a hash:
@note When making an API call, you may pass CORSRule
Specifies a cross-origin access rule for an Amazon S3 bucket.