Cloudflare

Dogfooding Cloudflare Workers

May 4, 2018Zack Proser
Dogfooding Cloudflare Workers
SummaryAI, from the source post

This post details the implementation of a Cloudflare Worker to intercept TLS connection information from incoming requests at the edge. The worker adds a custom 'X-Client-SSL-Protocol' header to requests forwarded to the origin, allowing backend services to react to outdated TLS versions. It also covers best practices for worker error handling, including `event.passThroughOnException()` for fail-open behavior and `event.waitUntil()` for asynchronous logging to Sentry.

More from the Edge Computing with Cloudflare Workers trail