dotnet / dotnet/AspNetCore.Docs
Add Antiforgery to Middleware order and Built-in middleware sections
- Dominant language
- C#
- Stars
- 13.1k
- Forks
- 24.6k
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 97
Description
### Description
The _Antiforgery_ middleware should be added to request processing pipeline after _Routing_, _Authentication_, and _Authorization_ but before _Endpoint_.
Reference: _[Migrate from ASP.NET Core in .NET 7 to .NET 8](https://learn.microsoft.com/en-us/aspnet/core/migration/70-80)_ ->
- _[Convert a Blazor Server app into a Blazor Web App](https://learn.microsoft.com/en-us/aspnet/core/migration/70-80#convert-a-blazor-server-app-into-a-blazor-web-app)_ -> point _6_
- _[Convert a hosted Blazor WebAssembly app into a Blazor Web App](https://learn.microsoft.com/en-us/aspnet/core/migration/70-80#convert-a-hosted-blazor-webassembly-app-into-a-blazor-web-app)_ -> point _8_
### Page URL
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/middleware/?view=aspnetcore-9.0#middleware-order
### Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/middleware/index.md
### Document ID
3926c686-0ccc-f9fe-ca52-0134612a1623
### Article author
@Rick-Anderson
Contributor guide
Assessment
This issue has not been assessed yet.