Is there any way to apply the Microsoft.AspNetCore.Components.WebAssembly.Http extension method SetBrowserRequestCredentials(BrowserRequestCredentials.Include) globally rather than having to do it on every individual request?
I'd like to avoid doing this on every call:
var request = new HttpRequestMessage(HttpMethod.Get, uri)
.SetBrowserRequestCredentials(BrowserRequestCredentials.Include);
var response = await httpClient.SendAsync(request);
and simply have something like this:
var response = await httpClient.GetAsync(uri);