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
| Name | Type | JSON name | Description |
|---|---|---|---|
AllowedHeaders | List<string>? | allowedHeaders | Request headers a preflight may ask for (names, or names with one * wildcard). |
AllowedMethods | List<string>? | allowedMethods | HTTP methods the rule allows: GET, PUT, POST, DELETE or HEAD (at least one). |
AllowedOrigins | List<string>? | allowedOrigins | Origins the rule allows: an exact origin such as https://app.example.com, or one with a single * wildcard (at least one, at most 20). |
ExposeHeaders | List<string>? | exposeHeaders | Response headers the browser may read. |
Id | string? | id | Optional rule identifier, unique within the bucket (at most 255 characters). |
MaxAgeSeconds | int? | maxAgeSeconds | How long a browser may cache a preflight answer, in seconds (0 to 86400; default 3000). |