CorsServiceCollectionExtensions
AddCors(IServiceCollection)
AddCors(IServiceCollection, Action<CorsOptions>)
net10.0
namespace Microsoft.Extensions.DependencyInjection
{
public static class CorsServiceCollectionExtensions
{
public static IServiceCollection! AddCors(this IServiceCollection! services, Action<CorsOptions!>! setupAction);
}
}
| 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