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 /4pull/30169/head
parent
3f17d5c347
commit
02411fe718
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue