From e377ac0c309871a454a20c51b3fd0c768043d270 Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Mon, 1 Apr 2024 08:30:48 -0400 Subject: [PATCH] Update service registration to match latest guidance (#32211) --- aspnetcore/blazor/call-web-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/blazor/call-web-api.md b/aspnetcore/blazor/call-web-api.md index 403cc40502..b7c719798a 100644 --- a/aspnetcore/blazor/call-web-api.md +++ b/aspnetcore/blazor/call-web-api.md @@ -680,7 +680,7 @@ public class CookieHandler : DelegatingHandler The `CookieHandler` is registered in the `Program` file: ```csharp -builder.Services.AddScoped(); +builder.Services.AddTransient(); ``` The message handler is added to any preconfigured that requires cookie authentication: