ArmAppContainersModelFactory.ContainerAppCorsPolicy Method

Definition

Cross-Origin-Resource-Sharing policy.

public static Azure.ResourceManager.AppContainers.Models.ContainerAppCorsPolicy ContainerAppCorsPolicy(System.Collections.Generic.IEnumerable<string> allowedOrigins = default, System.Collections.Generic.IEnumerable<string> allowedMethods = default, System.Collections.Generic.IEnumerable<string> allowedHeaders = default, System.Collections.Generic.IEnumerable<string> exposeHeaders = default, int? maxAge = default, bool? allowCredentials = default);
static member ContainerAppCorsPolicy : seq<string> * seq<string> * seq<string> * seq<string> * Nullable<int> * Nullable<bool> -> Azure.ResourceManager.AppContainers.Models.ContainerAppCorsPolicy
Public Shared Function ContainerAppCorsPolicy (Optional allowedOrigins As IEnumerable(Of String) = Nothing, Optional allowedMethods As IEnumerable(Of String) = Nothing, Optional allowedHeaders As IEnumerable(Of String) = Nothing, Optional exposeHeaders As IEnumerable(Of String) = Nothing, Optional maxAge As Nullable(Of Integer) = Nothing, Optional allowCredentials As Nullable(Of Boolean) = Nothing) As ContainerAppCorsPolicy

Parameters

allowedOrigins
IEnumerable<String>

Specifies the content for the access-control-allow-origins header.

allowedMethods
IEnumerable<String>

Specifies the content for the access-control-allow-methods header.

allowedHeaders
IEnumerable<String>

Specifies the content for the access-control-allow-headers header.

exposeHeaders
IEnumerable<String>

Specifies the content for the access-control-expose-headers header.

maxAge
Nullable<Int32>

Specifies the content for the access-control-max-age header.

allowCredentials
Nullable<Boolean>

Specifies whether the resource allows credentials.

Returns

A new ContainerAppCorsPolicy instance for mocking.

Applies to