共用方式為


AppPlatformGatewayCorsProperties Class

Definition

Cross-Origin Resource Sharing property.

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

Constructors

AppPlatformGatewayCorsProperties()

Initializes a new instance of AppPlatformGatewayCorsProperties.

Properties

AllowedHeaders

Allowed headers in cross-site requests. The special value * allows actual requests to send any header.

AllowedMethods

Allowed HTTP methods on cross-site requests. The special value * allows all methods. If not set, GET and HEAD are allowed by default.

AllowedOrigins

Allowed origins to make cross-site requests. The special value * allows all domains.

AreCredentialsAllowed

Whether user credentials are supported on cross-site requests. Valid values: true, false.

ExposedHeaders

HTTP response headers to expose for cross-site requests.

MaxAge

How long, in seconds, the response from a pre-flight request can be cached by clients.

Explicit Interface Implementations

IJsonModel<AppPlatformGatewayCorsProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<AppPlatformGatewayCorsProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AppPlatformGatewayCorsProperties>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AppPlatformGatewayCorsProperties>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<AppPlatformGatewayCorsProperties>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to