CorsPolicyBuilder Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.