CorsRule Class

Definition

Specifies a CORS rule for the Blob service.

public class CorsRule
type CorsRule = class
Public Class CorsRule
Inheritance
CorsRule

Constructors

CorsRule()

Initializes a new instance of the CorsRule class.

CorsRule(IList<String>, IList<AllowedMethods>, Int32, IList<String>, IList<String>)

Initializes a new instance of the CorsRule class.

Properties

AllowedHeaders

Gets or sets required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.

AllowedMethods

Gets or sets required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.

AllowedOrigins

Gets or sets required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains

ExposedHeaders

Gets or sets required if CorsRule element is present. A list of response headers to expose to CORS clients.

MaxAgeInSeconds

Gets or sets required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.

Methods

Validate()

Validate the object.

Applies to