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: