Microsoft.AspNetCore.Antiforgery
2.1.1
See the version list below for details.
Install-Package Microsoft.AspNetCore.Antiforgery -Version 2.1.1
dotnet add package Microsoft.AspNetCore.Antiforgery --version 2.1.1
<PackageReference Include="Microsoft.AspNetCore.Antiforgery" Version="2.1.1" />
paket add Microsoft.AspNetCore.Antiforgery --version 2.1.1
#r "nuget: Microsoft.AspNetCore.Antiforgery, 2.1.1"
// Install Microsoft.AspNetCore.Antiforgery as a Cake Addin
#addin nuget:?package=Microsoft.AspNetCore.Antiforgery&version=2.1.1
// Install Microsoft.AspNetCore.Antiforgery as a Cake Tool
#tool nuget:?package=Microsoft.AspNetCore.Antiforgery&version=2.1.1
An antiforgery system for ASP.NET Core designed to generate and validate tokens to prevent Cross-Site Request Forgery attacks.
| Product | Versions |
|---|---|
| .NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows |
| .NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
| .NET Standard | netstandard2.0 netstandard2.1 |
| .NET Framework | net461 net462 net463 net47 net471 net472 net48 |
| MonoAndroid | monoandroid |
| MonoMac | monomac |
| MonoTouch | monotouch |
| Tizen | tizen40 tizen60 |
| Xamarin.iOS | xamarinios |
| Xamarin.Mac | xamarinmac |
| Xamarin.TVOS | xamarintvos |
| Xamarin.WatchOS | xamarinwatchos |
-
.NETStandard 2.0
- Microsoft.AspNetCore.DataProtection (>= 2.1.1)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.1.1)
- Microsoft.AspNetCore.Http.Extensions (>= 2.1.1)
- Microsoft.AspNetCore.WebUtilities (>= 2.1.1)
- Microsoft.Extensions.ObjectPool (>= 2.1.1)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Microsoft.AspNetCore.Antiforgery:
| Package | Downloads |
|---|---|
|
Microsoft.AspNetCore.Mvc.ViewFeatures
ASP.NET Core MVC view rendering features. Contains common types used in most MVC applications as well as view rendering features such as view engines, views, view components, and HTML helpers. Commonly used types: Microsoft.AspNetCore.Mvc.Controller Microsoft.AspNetCore.Mvc.ValidateAntiForgeryTokenAttribute Microsoft.AspNetCore.Mvc.ViewComponent This package was built from the source code at https://github.com/aspnet/Mvc/tree/a6199bbfbab05583f987bae322fb04566841aaea |
|
|
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download. |
|
|
Microsoft.AspNetCore.App
Provides a default set of APIs for building an ASP.NET Core application. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download. |