Click or drag to resize
CORSRule Properties

The CORSRule type exposes the following members.

Properties
  NameDescription
Public propertyAllowedHeaders
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 (*).
Public propertyAllowedMethods
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.
Public propertyAllowedOrigins
Allowed origins. One origin could contain at most one wildcard (*).
Public propertyExposeHeaders
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.
Public propertyMaxAgeSeconds
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.
Top
See Also