HTTP/3 inspection
HTTP/3 uses the QUIC protocol over UDP instead of TCP. Because Gateway's default proxy only handles TCP traffic, HTTP/3 inspection requires turning on the UDP proxy. Without it, HTTP/3 traffic bypasses HTTP inspection. Network policies still apply to the underlying UDP traffic.
Gateway applies HTTP policies to HTTP/3 traffic last. For more information, refer to the order of enforcement.
Before you can inspect any HTTPS traffic, you must deploy a user-side certificate to your devices and turn on TLS decryption. To inspect HTTP/3 traffic, you must also turn on the Gateway proxy for UDP.
To turn on the Gateway proxy for UDP and TLS decryption:
- In Cloudflare One ↗, go to Traffic policies > Traffic settings.
- In Proxy and inspection, turn on Allow Secure Web Gateway to proxy traffic.
- Select TCP and UDP.
- Turn on TLS decryption.
Gateway can inspect HTTP/3 traffic from Mozilla Firefox and Microsoft Edge by establishing an HTTP/3 proxy connection. Gateway will then terminate the HTTP/3 connection, decrypt and inspect the traffic, and connect to the destination server over HTTP/2. Gateway can also inspect other HTTP applications, such as cURL.
If both the UDP proxy and TLS decryption are turned on, Google Chrome will automatically cancel HTTP/3 connections and retry them over HTTP/2, which Gateway can inspect. If either the UDP proxy or TLS decryption is turned off, HTTP/3 traffic from Chrome bypasses inspection entirely.
If you require HTTP/3 traffic with end-to-end encryption from the client to the origin while still using the Gateway proxy, you can create a Do Not Inspect HTTP policy to match the desired traffic. Using a Do Not Inspect policy allows HTTP/3 traffic to preserve proxy performance and end-to-end encryption by bypassing Gateway's TLS decryption and inspection.
To apply Gateway policies to HTTP traffic without turning on the UDP proxy, you must turn off QUIC in your users' browsers to ensure only HTTP/2 traffic reaches Gateway.
Google Chrome
- Go to
chrome://flags - Set Experimental QUIC protocol to Disabled.
- Relaunch Chrome.
Safari
You cannot turn off QUIC in Safari. All traffic will be sent over HTTP/3.
Firefox
- Go to
about:config. - If you receive a warning, select Accept the Risk and Continue.
- Set network.http.http3.enable to false.
- Relaunch Firefox.
Microsoft Edge
- Go to
edge://flags - Set Experimental QUIC protocol to Disabled.
- Relaunch Edge.