SDK reference / Models / Storage

BucketCorsRule

Kind: class

Namespace: Egulu.Sdk.Models.Storage

One CORS rule of a bucket (ADR-0508; S3's PutBucketCors): which web origins may call the bucket's S3 endpoint from a browser, and how.

Properties

NameTypeJSON nameDescription
AllowedHeadersList<string>?allowedHeadersRequest headers a preflight may ask for (names, or names with one * wildcard).
AllowedMethodsList<string>?allowedMethodsHTTP methods the rule allows: GET, PUT, POST, DELETE or HEAD (at least one).
AllowedOriginsList<string>?allowedOriginsOrigins the rule allows: an exact origin such as https://app.example.com, or one with a single * wildcard (at least one, at most 20).
ExposeHeadersList<string>?exposeHeadersResponse headers the browser may read.
Idstring?idOptional rule identifier, unique within the bucket (at most 255 characters).
MaxAgeSecondsint?maxAgeSecondsHow long a browser may cache a preflight answer, in seconds (0 to 86400; default 3000).