You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
First of, Connect is amazing. It fixes most of the annoying things with gRPC. It makes debugging super easy with the Connect protocol and I don't need to deploy an Envoy proxy to support grpc-web.
Hopefully this will be a quick question. I'm preparing to rollout my backend, implemented with Connect. The backend needs to support the gRPC and gRPC-web protocols (these are the protocols used by my clients). However I do not want the Connect protocol to be enabled once the backend is deployed. It's very practical for development, but once live I don't want it enabled. Is there a way to disable it?
I could write an interceptor to reject requests with the Connect-Protocol-Version header, but I was wondering if there is a better way.
Cheers
The text was updated successfully, but these errors were encountered:
It's currently not an option that is supported. As a workaround for now you may inspect the content type to classify the request as a grpc/grpcWeb request and return a 415 Unsupported Media Type status otherwise. Here is an example in HTTP middleware:
Hi,
First of, Connect is amazing. It fixes most of the annoying things with gRPC. It makes debugging super easy with the Connect protocol and I don't need to deploy an Envoy proxy to support grpc-web.
Hopefully this will be a quick question. I'm preparing to rollout my backend, implemented with Connect. The backend needs to support the gRPC and gRPC-web protocols (these are the protocols used by my clients). However I do not want the Connect protocol to be enabled once the backend is deployed. It's very practical for development, but once live I don't want it enabled. Is there a way to disable it?
I could write an interceptor to reject requests with the
Connect-Protocol-Version
header, but I was wondering if there is a better way.Cheers
The text was updated successfully, but these errors were encountered: