From 02411fe718cd3fbfad96fd1ba7242d7e7b691db8 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Mon, 28 Aug 2023 14:46:52 -1000 Subject: [PATCH] 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 --- .../minimal-apis/includes/{middleware.md => middleware7.md} | 0 aspnetcore/fundamentals/minimal-apis/includes/middleware8.md | 2 ++ .../fundamentals/minimal-apis/includes/webapplication.md | 2 +- .../fundamentals/minimal-apis/includes/webapplication7.md | 2 +- aspnetcore/fundamentals/minimal-apis/middleware.md | 4 ++-- 5 files changed, 6 insertions(+), 4 deletions(-) rename aspnetcore/fundamentals/minimal-apis/includes/{middleware.md => middleware7.md} (100%) diff --git a/aspnetcore/fundamentals/minimal-apis/includes/middleware.md b/aspnetcore/fundamentals/minimal-apis/includes/middleware7.md similarity index 100% rename from aspnetcore/fundamentals/minimal-apis/includes/middleware.md rename to aspnetcore/fundamentals/minimal-apis/includes/middleware7.md diff --git a/aspnetcore/fundamentals/minimal-apis/includes/middleware8.md b/aspnetcore/fundamentals/minimal-apis/includes/middleware8.md index aff8a4f5a1..bd32003aef 100644 --- a/aspnetcore/fundamentals/minimal-apis/includes/middleware8.md +++ b/aspnetcore/fundamentals/minimal-apis/includes/middleware8.md @@ -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 + :::moniker-end diff --git a/aspnetcore/fundamentals/minimal-apis/includes/webapplication.md b/aspnetcore/fundamentals/minimal-apis/includes/webapplication.md index a062a7c7d4..a207bf79e0 100644 --- a/aspnetcore/fundamentals/minimal-apis/includes/webapplication.md +++ b/aspnetcore/fundamentals/minimal-apis/includes/webapplication.md @@ -14,7 +14,7 @@ The following code creates a [`WebApplication.Create`](xref:Microsoft.AspNetCore.Builder.WebApplication.Create%2A) initializes a new instance of the class with preconfigured defaults. -[!INCLUDE [webapplication7](~/fundamentals/minimal-apis/includes/middleware.md)] +[!INCLUDE [webapplication7](~/fundamentals/minimal-apis/includes/middleware7.md)] ### Working with ports diff --git a/aspnetcore/fundamentals/minimal-apis/includes/webapplication7.md b/aspnetcore/fundamentals/minimal-apis/includes/webapplication7.md index a92204666a..9f95c0c7c7 100644 --- a/aspnetcore/fundamentals/minimal-apis/includes/webapplication7.md +++ b/aspnetcore/fundamentals/minimal-apis/includes/webapplication7.md @@ -13,7 +13,7 @@ The following code creates a [`WebApplication.Create`](xref:Microsoft.AspNetCore.Builder.WebApplication.Create%2A) initializes a new instance of the class with preconfigured defaults. -[!INCLUDE [webapplication7](~/fundamentals/minimal-apis/includes/middleware.md)] +[!INCLUDE [webapplication7](~/fundamentals/minimal-apis/includes/middleware7.md)] ### Working with ports diff --git a/aspnetcore/fundamentals/minimal-apis/middleware.md b/aspnetcore/fundamentals/minimal-apis/middleware.md index aae5ca9d63..d4c36d48bc 100644 --- a/aspnetcore/fundamentals/minimal-apis/middleware.md +++ b/aspnetcore/fundamentals/minimal-apis/middleware.md @@ -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.