| CORSRule Class |
Namespace: Aliyun.OSS
The CORSRule type exposes the following members.
| Name | Description | |
|---|---|---|
| AddAllowedHeader |
Adds a allowed header.
| |
| AddAllowedMethod |
Adds one allowed HTTP method
| |
| AddAllowedOrigin |
Adds one allowed origin.
| |
| AddExposeHeader |
adds an expose header.
| |
| Equals | (Inherited from Object.) | |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| AllowedHeaders |
Get or set Allowed Headers.
This property is to specify the value of Access-Control-Allowed-Headers in the preflight response.
It defines the allowed headers in the actual CORS request.
Each allowed header can have up to one wildcard (*).
| |
| AllowedMethods |
Allowed HTTP Method. Valid values are GET,PUT,DELETE,POST,HEAD.
This property is to specify the value of Access-Control-Allow-Methods header in the preflight response.
It means the allowed methods in the actual CORS request.
| |
| AllowedOrigins |
Allowed origins. One origin could contain at most one wildcard (*).
| |
| ExposeHeaders |
Get or set exposed headers in the CORS response. Wildcard(*) is not allowed.
This property is to specify the value of Access-Control-Expose-Headers in the preflight response.
| |
| MaxAgeSeconds |
HTTP Access-Control-Max-Age's getter and setter, in seconds.
The Access-Control-Max-Age header indicates how long the results of a preflight request (OPTIONS) can be cached in a preflight result cache.
The max value is 999999999.
|