CorsRule Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CorsRule() |
Initializes a new instance of the CorsRule class. |
CorsRule(IList<String>, IList<String>, Int32, IList<String>, IList<String>) |
Initializes a new instance of the CorsRule class. |
CorsRule()
Initializes a new instance of the CorsRule class.
public CorsRule ();
Public Sub New ()
Applies to
CorsRule(IList<String>, IList<String>, Int32, IList<String>, IList<String>)
Initializes a new instance of the CorsRule class.
public CorsRule (System.Collections.Generic.IList<string> allowedOrigins, System.Collections.Generic.IList<string> allowedMethods, int maxAgeInSeconds, System.Collections.Generic.IList<string> exposedHeaders, System.Collections.Generic.IList<string> allowedHeaders);
new Microsoft.Azure.Management.Storage.Models.CorsRule : System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> * int * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> -> Microsoft.Azure.Management.Storage.Models.CorsRule
Public Sub New (allowedOrigins As IList(Of String), allowedMethods As IList(Of String), maxAgeInSeconds As Integer, exposedHeaders As IList(Of String), allowedHeaders As IList(Of String))
Parameters
Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
- maxAgeInSeconds
- Int32
Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
Required if CorsRule element is present. A list of response headers to expose to CORS clients.
Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.