CorsPolicyBuilder
CorsPolicyBuilder(CorsPolicy)
CorsPolicyBuilder(String[])
AllowAnyHeader()
AllowAnyMethod()
AllowAnyOrigin()
AllowCredentials()
Build()
DisallowCredentials()
SetIsOriginAllowed(Func<String, Boolean>)
SetIsOriginAllowedToAllowWildcardSubdomains()
SetPreflightMaxAge(TimeSpan)
WithExposedHeaders(String[])
WithHeaders(String[])
WithMethods(String[])
WithOrigins(String[])
net10.0
namespace Microsoft.AspNetCore.Cors.Infrastructure
{
public class CorsPolicyBuilder
{
public CorsPolicyBuilder! AllowAnyMethod();
}
}
| nuget.org | 0.4 % Reference this API |
|---|---|
| .NET | 5.06.07.08.09.010.0 |
| .NET Core | 3.03.1 |
Information specific to net10.0 | |
| Assembly | Microsoft.AspNetCore.Cors , Version=10.0.0.0, PublicKeyToken=adb9793829ddae60 |
| Referencing | Requires any:
|
| Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API