CorsOptions 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
CorsOptions() |
Initializes a new instance of the CorsOptions class. |
CorsOptions(IList<String>, Nullable<Int64>) |
Initializes a new instance of the CorsOptions class. |
CorsOptions()
- Source:
- CorsOptions.cs
Initializes a new instance of the CorsOptions class.
public CorsOptions ();
Public Sub New ()
Applies to
CorsOptions(IList<String>, Nullable<Int64>)
- Source:
- CorsOptions.cs
Initializes a new instance of the CorsOptions class.
public CorsOptions (System.Collections.Generic.IList<string> allowedOrigins, long? maxAgeInSeconds = default);
new Microsoft.Azure.Search.Models.CorsOptions : System.Collections.Generic.IList<string> * Nullable<int64> -> Microsoft.Azure.Search.Models.CorsOptions
Public Sub New (allowedOrigins As IList(Of String), Optional maxAgeInSeconds As Nullable(Of Long) = Nothing)
Parameters
The list of origins from which JavaScript code will be granted access to your index. Can contain a list of hosts of the form {protocol}://{fully-qualified-domain-name}[:{port#}], or a single '*' to allow all origins (not recommended).
The duration for which browsers should cache CORS preflight responses. Defaults to 5 minutes.
Applies to
Azure SDK for .NET