CorsPolicyBuilder Constructors

Definition

Overloads

CorsPolicyBuilder(CorsPolicy)

Creates a new instance of the CorsPolicyBuilder.

CorsPolicyBuilder(String[])

Creates a new instance of the CorsPolicyBuilder.

CorsPolicyBuilder(CorsPolicy)

Source:
CorsPolicyBuilder.cs
Source:
CorsPolicyBuilder.cs
Source:
CorsPolicyBuilder.cs

Creates a new instance of the CorsPolicyBuilder.

public:
 CorsPolicyBuilder(Microsoft::AspNetCore::Cors::Infrastructure::CorsPolicy ^ policy);
public CorsPolicyBuilder (Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy policy);
new Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder : Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy -> Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder
Public Sub New (policy As CorsPolicy)

Parameters

policy
CorsPolicy

The policy which will be used to intialize the builder.

Applies to

CorsPolicyBuilder(String[])

Source:
CorsPolicyBuilder.cs
Source:
CorsPolicyBuilder.cs
Source:
CorsPolicyBuilder.cs

Creates a new instance of the CorsPolicyBuilder.

public:
 CorsPolicyBuilder(... cli::array <System::String ^> ^ origins);
public CorsPolicyBuilder (params string[] origins);
new Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder : string[] -> Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder
Public Sub New (ParamArray origins As String())

Parameters

origins
String[]

list of origins which can be added.

Remarks

WithOrigins(String[]) for details on normalizing the origin value.

Applies to