EnableCorsAttribute Constructors

Definition

Overloads

EnableCorsAttribute()

Creates a new instance of the EnableCorsAttribute with the default policy name defined by DefaultPolicyName.

EnableCorsAttribute(String)

Creates a new instance of the EnableCorsAttribute with the supplied policy name.

EnableCorsAttribute()

Source:
EnableCorsAttribute.cs
Source:
EnableCorsAttribute.cs

Creates a new instance of the EnableCorsAttribute with the default policy name defined by DefaultPolicyName.

public:
 EnableCorsAttribute();
public EnableCorsAttribute ();
Public Sub New ()

Applies to

EnableCorsAttribute(String)

Source:
EnableCorsAttribute.cs
Source:
EnableCorsAttribute.cs

Creates a new instance of the EnableCorsAttribute with the supplied policy name.

public:
 EnableCorsAttribute(System::String ^ policyName);
public EnableCorsAttribute (string policyName);
public EnableCorsAttribute (string? policyName);
new Microsoft.AspNetCore.Cors.EnableCorsAttribute : string -> Microsoft.AspNetCore.Cors.EnableCorsAttribute
Public Sub New (policyName As String)

Parameters

policyName
String

The name of the policy to be applied.

Applies to