Share via


TableCorsRule(String, String, String, String, Int32) Constructor

Definition

Initializes a new instance of TableCorsRule.

public TableCorsRule (string allowedOrigins, string allowedMethods, string allowedHeaders, string exposedHeaders, int maxAgeInSeconds);
new Azure.Data.Tables.Models.TableCorsRule : string * string * string * string * int -> Azure.Data.Tables.Models.TableCorsRule
Public Sub New (allowedOrigins As String, allowedMethods As String, allowedHeaders As String, exposedHeaders As String, maxAgeInSeconds As Integer)

Parameters

allowedOrigins
String

The origin domains that are permitted to make a request against the service via CORS. The origin domain is the domain from which the request originates. Note that the origin must be an exact case-sensitive match with the origin that the user age sends to the service. You can also use the wildcard character '*' to allow all origin domains to make requests via CORS.

allowedMethods
String

The methods (HTTP request verbs) that the origin domain may use for a CORS request. (comma separated).

allowedHeaders
String

The request headers that the origin domain may specify on the CORS request.

exposedHeaders
String

The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer.

maxAgeInSeconds
Int32

The maximum amount time that a browser should cache the preflight OPTIONS request.

Exceptions

allowedOrigins, allowedMethods, allowedHeaders or exposedHeaders is null.

Applies to