Meziantou.AspNetCore.Components.WebAssembly
1.0.21
Prefix Reserved
dotnet add package Meziantou.AspNetCore.Components.WebAssembly --version 1.0.21
NuGet\Install-Package Meziantou.AspNetCore.Components.WebAssembly -Version 1.0.21
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Meziantou.AspNetCore.Components.WebAssembly" Version="1.0.21" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Meziantou.AspNetCore.Components.WebAssembly" Version="1.0.21" />
<PackageReference Include="Meziantou.AspNetCore.Components.WebAssembly" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Meziantou.AspNetCore.Components.WebAssembly --version 1.0.21
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Meziantou.AspNetCore.Components.WebAssembly, 1.0.21"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Meziantou.AspNetCore.Components.WebAssembly@1.0.21
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Meziantou.AspNetCore.Components.WebAssembly&version=1.0.21
#tool nuget:?package=Meziantou.AspNetCore.Components.WebAssembly&version=1.0.21
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Meziantou.AspNetCore.Components.WebAssembly
A .NET library providing services and utilities for Blazor WebAssembly applications.
Features
DefaultBrowserOptionsMessageHandler
A message handler that allows you to set default browser options for all HTTP requests in your Blazor WebAssembly application. This is particularly useful for controlling browser cache behavior, credentials, and request modes.
Usage
Register the handler with HttpClient using dependency injection:
using Meziantou.AspNetCore.Components.WebAssembly;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Microsoft.AspNetCore.Components.WebAssembly.Http;
var builder = WebAssemblyHostBuilder.CreateDefault(args);
// Add HttpClient with default browser options
builder.Services.AddHttpClient<MyApiClient>()
.ConfigureHttpClient(client => client.BaseAddress = new Uri(builder.HostEnvironment.BaseAddress))
.AddHttpMessageHandler(() => new DefaultBrowserOptionsMessageHandler()
{
DefaultBrowserRequestCache = BrowserRequestCache.NoCache
});
await builder.Build().RunAsync();
Additional Resources
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.AspNetCore.Components.Web (>= 10.0.3)
- Microsoft.AspNetCore.Components.WebAssembly (>= 10.0.3)
-
net8.0
- Microsoft.AspNetCore.Components.Web (>= 8.0.24)
- Microsoft.AspNetCore.Components.WebAssembly (>= 8.0.24)
-
net9.0
- Microsoft.AspNetCore.Components.Web (>= 9.0.13)
- Microsoft.AspNetCore.Components.WebAssembly (>= 9.0.13)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.21 | 0 | 2/22/2026 |
| 1.0.20 | 137 | 1/18/2026 |
| 1.0.19 | 289 | 12/14/2025 |
| 1.0.18 | 160 | 11/16/2025 |
| 1.0.17 | 115 | 11/2/2025 |
| 1.0.16 | 154 | 10/27/2025 |
| 1.0.15 | 82 | 10/19/2025 |
| 1.0.14 | 166 | 9/21/2025 |
| 1.0.13 | 296 | 9/16/2025 |
| 1.0.12 | 202 | 9/3/2025 |
| 1.0.11 | 137 | 8/10/2025 |
| 1.0.10 | 169 | 7/13/2025 |
| 1.0.9 | 184 | 6/15/2025 |
| 1.0.8 | 146 | 5/18/2025 |
| 1.0.7 | 190 | 4/13/2025 |
| 1.0.6 | 183 | 3/16/2025 |
| 1.0.5 | 158 | 3/1/2025 |
| 1.0.4 | 154 | 11/17/2024 |
| 1.0.3 | 392 | 11/15/2023 |
| 1.0.2 | 4,245 | 7/14/2021 |
Loading failed