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) =>