Securing Blazor WebAssembly Apps

Have you tried deleting this line?
https://github.com/microgate-it/BlazorWithAuth0/blob/master/BlazorWasmWithAuth0/Client/Program.cs#L19

The call to builder.Services.AddScoped(sp => sp.GetRequiredService<IHttpClientFactory>() .CreateClient("ServerAPI")); above will cause the default HttpClient resolved to be the one that includes the bearer token.

2 Likes