gRPC connections

Last updated Aug 14, 2026 Cloudflare offers support for gRPC to protect your APIs on any proxied gRPC endpoints. The gRPC protocol helps build efficient APIs with smaller payloads for reduced bandwidth usage, decreased latency, and faster implementations.

Note

When gRPC is not enabled on a zone, Cloudflare will respond to gRPC requests with a 403 Forbidden response.

Availability

Free Pro Business Enterprise
Availability Yes Yes Yes Yes

Charges may occur for gRPC traffic over add-on products such as Argo Smart Routing, WAF, and Bot Management.

Limitations

Running gRPC traffic on Cloudflare is compatible with most Cloudflare products.

However, the following products have limited capabilities with gRPC requests:

  • The Cloudflare WAF will only run for header inspection during the connection phase. WAF Managed Rules will not run on the content of a gRPC stream.
  • Cloudflare Tunnel supports gRPC traffic via private subnet routing. Public hostname deployments are not currently supported.
  • Cloudflare Access does not support gRPC traffic sent through Cloudflare’s reverse proxy. gRPC traffic will be ignored by Access if gRPC is enabled in Cloudflare. We recommend disabling gRPC for any sensitive origin servers protected by Access or enabling another means of authenticating gRPC traffic to your origin servers.

Enable gRPC

Requirements

  • Your gRPC endpoint must listen on port 443.
  • Your gRPC endpoint must support TLS and HTTP/2.
  • HTTP/2 must be advertised over ALPN.
  • Use application/grpc or application/grpc+<message type (for example: application/grpc+proto) for the Content-Type header of gRPC requests.
  • Make sure that the hostname that hosts your gRPC endpoint:
  • Is set to proxied
  • Uses at least the Full SSL/TLS encryption mode.

Procedure

To change the gRPC setting in the dashboard:

  1. Log in to your Cloudflare account ↗︎ and go to a specific domain.
  2. Go to Network.
  3. For gRPC, switch the toggle to On.

Was this helpful?

YesNo

On this page

gRPC connections - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/network/grpc-connections/#page","headline":"gRPC connections","description":"Protect gRPC APIs on proxied endpoints with Cloudflare.","url":"https://developers.cloudflare.com/network/grpc-connections/","inLanguage":"en","image":"https://developers.cloudflare.com/network/grpc-connections/og.png?v=d18ef1e3e5cee851","dateModified":"2026-08-14","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Add visitor country information via the CF-IPCountry header. title: IP geolocation image: https://developers.cloudflare.com/network/ip-geolocation/og.png?v=6b985d2643a76b17


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/network/llms.txt
Use this file to discover all available pages before exploring further.