pub fn enable<S>(service: S) -> CorsGrpcWeb<S>
Expand description
Enable a tonic service to handle grpc-web requests with the default configuration.
You can customize the CORS configuration composing the GrpcWebLayer
with the cors layer of your choice.