Grpc.AspNetCore.Web 2.76.0
Grpc.AspNetCore.Web
Grpc.AspNetCore.Web provides middleware that enables ASP.NET Core gRPC services to accept gRPC-Web calls.
Configure gRPC-Web
In Program.cs:
using GrpcGreeter.Services;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddGrpc();
var app = builder.Build();
// Configure the HTTP request pipeline.
app.UseRouting();
app.UseGrpcWeb(new GrpcWebOptions { DefaultEnabled = true });
app.MapGrpcService<GreeterService>();
app.Run();
gRPC-Web can be enabled for all gRPC services by setting GrpcWebOptions.DefaultEnabled = true, or enabled on individual services with EnableGrpcWeb():
app.MapGrpcService<GreeterService>().EnableGrpcWeb();
gRPC-Web and streaming
Traditional gRPC over HTTP/2 supports streaming in all directions. gRPC-Web offers limited support for streaming:
- gRPC-Web browser clients don't support calling client streaming and bidirectional streaming methods.
- gRPC-Web .NET clients don't support calling client streaming and bidirectional streaming methods over HTTP/1.1.
- ASP.NET Core gRPC services hosted on Azure App Service and IIS don't support bidirectional streaming.
When using gRPC-Web, we only recommend the use of unary methods and server streaming methods.
Links
No packages depend on Grpc.AspNetCore.Web.
.NET 8.0
- No dependencies.
.NET 9.0
- No dependencies.
.NET 10.0
- No dependencies.
| Version | Downloads | Last updated |
|---|---|---|
| 2.76.0 | 2 | 01/10/2026 |
| 2.76.0-pre1 | 4 | 12/10/2025 |
| 2.71.0 | 4 | 12/10/2025 |
| 2.71.0-pre1 | 5 | 12/10/2025 |
| 2.70.0 | 3 | 12/22/2025 |
| 2.70.0-pre1 | 4 | 12/10/2025 |
| 2.67.0 | 3 | 12/10/2025 |
| 2.67.0-pre1 | 4 | 12/10/2025 |
| 2.66.0 | 4 | 12/10/2025 |
| 2.66.0-pre1 | 3 | 12/10/2025 |
| 2.65.0 | 3 | 12/10/2025 |
| 2.65.0-pre1 | 3 | 12/10/2025 |
| 2.64.0 | 4 | 12/10/2025 |
| 2.64.0-pre1 | 4 | 12/10/2025 |
| 2.63.0 | 4 | 12/10/2025 |
| 2.63.0-pre1 | 3 | 12/10/2025 |
| 2.62.0 | 3 | 12/10/2025 |
| 2.62.0-pre1 | 3 | 12/10/2025 |
| 2.61.0 | 4 | 12/10/2025 |
| 2.61.0-pre1 | 3 | 12/10/2025 |
| 2.60.0 | 4 | 12/10/2025 |
| 2.60.0-pre1 | 3 | 12/10/2025 |
| 2.59.0 | 3 | 12/10/2025 |
| 2.59.0-pre1 | 3 | 12/10/2025 |
| 2.58.0 | 3 | 12/10/2025 |
| 2.58.0-pre1 | 3 | 12/10/2025 |
| 2.57.0 | 5 | 12/10/2025 |
| 2.57.0-pre1 | 4 | 12/10/2025 |
| 2.56.0 | 4 | 12/10/2025 |
| 2.56.0-pre2 | 4 | 12/10/2025 |
| 2.56.0-pre1 | 4 | 12/10/2025 |
| 2.55.0 | 4 | 12/10/2025 |
| 2.55.0-pre1 | 4 | 12/10/2025 |
| 2.54.0 | 3 | 12/10/2025 |
| 2.54.0-pre1 | 3 | 12/10/2025 |
| 2.53.0 | 3 | 12/10/2025 |
| 2.53.0-pre1 | 4 | 12/10/2025 |
| 2.52.0 | 4 | 12/10/2025 |
| 2.52.0-pre1 | 4 | 12/10/2025 |
| 2.51.0 | 4 | 12/10/2025 |
| 2.51.0-pre1 | 4 | 12/10/2025 |
| 2.50.0 | 4 | 12/10/2025 |
| 2.50.0-pre1 | 3 | 12/10/2025 |
| 2.49.0 | 4 | 12/10/2025 |
| 2.49.0-pre1 | 4 | 12/10/2025 |
| 2.48.0 | 4 | 12/10/2025 |
| 2.48.0-pre1 | 4 | 12/10/2025 |
| 2.47.0 | 4 | 12/10/2025 |
| 2.47.0-pre1 | 4 | 12/10/2025 |
| 2.46.0 | 3 | 12/10/2025 |
| 2.46.0-pre1 | 4 | 12/10/2025 |
| 2.45.0 | 3 | 12/10/2025 |
| 2.45.0-pre1 | 4 | 12/10/2025 |
| 2.44.0 | 4 | 12/10/2025 |
| 2.44.0-pre1 | 4 | 12/10/2025 |
| 2.43.0 | 4 | 12/10/2025 |
| 2.43.0-pre1 | 4 | 12/10/2025 |
| 2.42.0 | 4 | 12/10/2025 |
| 2.42.0-pre1 | 4 | 12/10/2025 |
| 2.41.0 | 4 | 12/10/2025 |
| 2.41.0-pre1 | 4 | 12/10/2025 |
| 2.40.0 | 4 | 12/10/2025 |
| 2.40.0-pre1 | 4 | 12/10/2025 |
| 2.39.0 | 5 | 12/10/2025 |
| 2.39.0-pre1 | 3 | 12/10/2025 |
| 2.38.0 | 3 | 12/10/2025 |
| 2.38.0-pre1 | 3 | 12/10/2025 |
| 2.37.0 | 3 | 12/10/2025 |
| 2.37.0-pre1 | 4 | 12/10/2025 |
| 2.36.0 | 4 | 12/10/2025 |
| 2.36.0-pre1 | 4 | 12/10/2025 |
| 2.35.0 | 4 | 12/10/2025 |
| 2.35.0-pre1 | 4 | 12/10/2025 |
| 2.34.0 | 4 | 12/10/2025 |
| 2.34.0-pre1 | 4 | 12/10/2025 |
| 2.33.1 | 4 | 12/10/2025 |
| 2.33.1-pre1 | 4 | 12/10/2025 |
| 2.32.0 | 4 | 12/10/2025 |
| 2.32.0-pre1 | 4 | 12/10/2025 |
| 2.31.0 | 4 | 12/10/2025 |
| 2.31.0-pre2 | 4 | 12/10/2025 |
| 2.30.0 | 4 | 12/10/2025 |
| 2.30.0-pre1 | 4 | 12/10/2025 |
| 2.29.0 | 3 | 12/10/2025 |
| 2.29.0-pre1 | 4 | 12/10/2025 |
| 2.28.0-pre2 | 3 | 12/10/2025 |
| 2.28.0-pre1 | 4 | 12/10/2025 |
| 2.27.0-pre1 | 3 | 12/10/2025 |