Partilhar via


CorsSettings Class

Definition

Cross-Origin Resource Sharing (CORS) settings for the app.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.CorsSettingsTypeConverter))]
public class CorsSettings : Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICorsSettings
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.CorsSettingsTypeConverter))>]
type CorsSettings = class
    interface ICorsSettings
    interface IJsonSerializable
Public Class CorsSettings
Implements ICorsSettings
Inheritance
CorsSettings
Attributes
Implements

Constructors

CorsSettings()

Creates an new CorsSettings instance.

Properties

AllowedOrigin

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.

SupportCredentials

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.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of CorsSettings.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of CorsSettings.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.ICorsSettings.

FromJsonString(String)

Creates a new instance of CorsSettings, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of CorsSettings into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to