From ea100e86880a6f5f06e30ed6d2f0f03564366488 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Wed, 15 Nov 2023 16:29:11 -1000 Subject: [PATCH] fix (#242) --- fundamentals/minimal-apis/samples/MyAntiForgery8/Program.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fundamentals/minimal-apis/samples/MyAntiForgery8/Program.cs b/fundamentals/minimal-apis/samples/MyAntiForgery8/Program.cs index 5fd6ec0..332ca07 100644 --- a/fundamentals/minimal-apis/samples/MyAntiForgery8/Program.cs +++ b/fundamentals/minimal-apis/samples/MyAntiForgery8/Program.cs @@ -11,6 +11,8 @@ builder.Services.AddAntiforgery(); var app = builder.Build(); +app.UseAntiforgery(); + // // Pass token app.MapGet("/", (HttpContext context, IAntiforgery antiforgery) =>