Class CORSRule
C O R S Rule
public class CORSRule
- Inheritance
-
CORSRule
- Inherited Members
Constructors
CORSRule()
public CORSRule()
Properties
AllowedHeaders
Specifies which headers are allowed in a pre-flight OPTIONS request through the Access-Control-Request-Headers header.
public List<string> AllowedHeaders { get; set; }
Property Value
Remarks
Each header name specified in the Access-Control-Request-Headers must have a corresponding entry in the rule. Only the headers that were requested will be sent back. This element can contain at most one * wildcard character.
AllowedMethods
Identifies HTTP methods that the domain/origin specified in the rule is allowed to execute.
public List<string> AllowedMethods { get; set; }
Property Value
AllowedOrigins
One or more origins you want customers to be able to access the bucket from.
public List<string> AllowedOrigins { get; set; }
Property Value
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).
public List<string> ExposeHeaders { get; set; }
Property Value
Id
An optional unique identifier for the rule.
public string Id { get; set; }
Property Value
Remarks
The ID value can be up to 255 characters long. The IDs help you find a rule in the configuration.
MaxAgeSeconds
The time in seconds that your browser is to cache the preflight response for the specified resource.
public int MaxAgeSeconds { get; set; }