Asp.net: 'application/grpc-web' is not supported

Viewed 1938

I had Asp.net core and gRPC working on the browser...but now I get:

info: Grpc.AspNetCore.Server.ServerCallHandler[2]
  Request content-type of 'application/grpc-web' is not supported.

Any ideas on how to track this down?

2 Answers

Likely an issue in your Startup.cs

Yours should look something like this enter image description here

My guess is that you are missing app.UseGrpcWeb() or the EnabledGrpc() on the EndpointConventionBuilder

Related