CorsSettings 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
CorsSettings() |
Initializes a new instance of the CorsSettings class. |
CorsSettings(IList<String>, Nullable<Boolean>) |
Initializes a new instance of the CorsSettings class. |
CorsSettings()
Initializes a new instance of the CorsSettings class.
public CorsSettings ();
Public Sub New ()
Applies to
CorsSettings(IList<String>, Nullable<Boolean>)
Initializes a new instance of the CorsSettings class.
public CorsSettings (System.Collections.Generic.IList<string> allowedOrigins = default, bool? supportCredentials = default);
new Microsoft.Azure.Management.WebSites.Models.CorsSettings : System.Collections.Generic.IList<string> * Nullable<bool> -> Microsoft.Azure.Management.WebSites.Models.CorsSettings
Public Sub New (Optional allowedOrigins As IList(Of String) = Nothing, Optional supportCredentials As Nullable(Of Boolean) = Nothing)
Parameters
Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all.
Gets or sets whether CORS requests with credentials are allowed. See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials for more details.
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for