Share via


AppServiceCorsSettings Class

Definition

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

public class AppServiceCorsSettings : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.AppService.Models.AppServiceCorsSettings>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.AppService.Models.AppServiceCorsSettings>
type AppServiceCorsSettings = class
    interface IJsonModel<AppServiceCorsSettings>
    interface IPersistableModel<AppServiceCorsSettings>
Public Class AppServiceCorsSettings
Implements IJsonModel(Of AppServiceCorsSettings), IPersistableModel(Of AppServiceCorsSettings)
Inheritance
AppServiceCorsSettings
Implements

Constructors

AppServiceCorsSettings()

Initializes a new instance of AppServiceCorsSettings.

Properties

AllowedOrigins

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.

IsCredentialsSupported

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

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<AppServiceCorsSettings>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<AppServiceCorsSettings>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AppServiceCorsSettings>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AppServiceCorsSettings>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<AppServiceCorsSettings>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to