- Create .NET Framework 4.8 console app.
- Change protocol in
appsettings.json
fromHttp2
toHttp1
. - Install NuGet packages:
Grpc.AspNetCore.Web
and update all packages to latest releases. - Modify `Program.cs':
// Utilize gRPC-Web.
app.UseGrpcWeb();
// Configure the HTTP request pipeline.
// Remove the default
//app.MapGrpcService<GreeterService>();
// Add support for gRPC-Web.
app.MapGrpcService<GreeterService>().EnableGrpcWeb();
- Modify
launchSettings.json
to removehttps://localhost:7019
fromapplicationUrl
. - Modify
Services/GreeterService.cs
to log the incoming request.