CorsPolicy 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
CorsPolicy() |
Initializes a new instance of the CorsPolicy class. |
CorsPolicy(String, String, String, String, Nullable<Int64>) |
Initializes a new instance of the CorsPolicy class. |
CorsPolicy()
Initializes a new instance of the CorsPolicy class.
public CorsPolicy ();
Public Sub New ()
Applies to
CorsPolicy(String, String, String, String, Nullable<Int64>)
Initializes a new instance of the CorsPolicy class.
public CorsPolicy (string allowedOrigins, string allowedMethods = default, string allowedHeaders = default, string exposedHeaders = default, long? maxAgeInSeconds = default);
new Microsoft.Azure.Management.CosmosDB.Models.CorsPolicy : string * string * string * string * Nullable<int64> -> Microsoft.Azure.Management.CosmosDB.Models.CorsPolicy
Public Sub New (allowedOrigins As String, Optional allowedMethods As String = Nothing, Optional allowedHeaders As String = Nothing, Optional exposedHeaders As String = Nothing, Optional maxAgeInSeconds As Nullable(Of Long) = Nothing)
Parameters
- allowedOrigins
- String
The origin domains that are permitted to make a request against the service via CORS.
- allowedMethods
- String
The methods (HTTP request verbs) that the origin domain may use for a CORS request.
- 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.
The maximum amount time that a browser should cache the preflight OPTIONS request.