API antiForgery /4 (#30150)

* API antiForgery /4

* API antiForgery /4

* API antiForgery /4

* API antiForgery /4

* API antiForgery /4

* API antiForgery /4

* API antiForgery /4

* Antiforgery for min api's /4

* Antiforgery for min api's /4
pull/30169/head
Rick Anderson 2023-08-28 14:46:52 -10:00 committed by GitHub
parent 3f17d5c347
commit 02411fe718
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 4 deletions

View File

@ -77,4 +77,6 @@ app.Run(context =>
Terminal middleware is middleware that runs if no endpoint handles the request.
For information on antiforgery middleware in Minimal APIs, see <xref:security/anti-request-forgery#afwma>
:::moniker-end

View File

@ -14,7 +14,7 @@ The following code creates a <xref:Microsoft.AspNetCore.Builder.WebApplication>
[`WebApplication.Create`](xref:Microsoft.AspNetCore.Builder.WebApplication.Create%2A) initializes a new instance of the <xref:Microsoft.AspNetCore.Builder.WebApplication> class with preconfigured defaults.
[!INCLUDE [webapplication7](~/fundamentals/minimal-apis/includes/middleware.md)]
[!INCLUDE [webapplication7](~/fundamentals/minimal-apis/includes/middleware7.md)]
### Working with ports

View File

@ -13,7 +13,7 @@ The following code creates a <xref:Microsoft.AspNetCore.Builder.WebApplication>
[`WebApplication.Create`](xref:Microsoft.AspNetCore.Builder.WebApplication.Create%2A) initializes a new instance of the <xref:Microsoft.AspNetCore.Builder.WebApplication> class with preconfigured defaults.
[!INCLUDE [webapplication7](~/fundamentals/minimal-apis/includes/middleware.md)]
[!INCLUDE [webapplication7](~/fundamentals/minimal-apis/includes/middleware7.md)]
### Working with ports

View File

@ -3,14 +3,14 @@ title: Middleware with Minimal API applications
author: BrennanConroy
description: Use middleware in Minimal API applications
ms.author: brecon
ms.date: 10/10/2022
ms.date: 8/25/2023
monikerRange: '>= aspnetcore-7.0'
uid: fundamentals/minimal-apis/middleware
---
# Middleware in Minimal API apps
[!INCLUDE [webapplication7](~/fundamentals/minimal-apis/includes/middleware.md)]
[!INCLUDE [webapplication7](~/fundamentals/minimal-apis/includes/middleware7.md)]
[!INCLUDE [webapplication8](~/fundamentals/minimal-apis/includes/middleware8.md)]
For more information about middleware see [ASP.NET Core Middleware](xref:fundamentals/middleware/index), and the [list of built-in middleware](xref:fundamentals/middleware/index#built-in-middleware) that can be added to applications.