Diagnostic step 1
Re-enable Cloudflare Worker but instrument it to log incoming headers (mask tokens) and explicitly forward Authorization to origin (add request.headers.set('authorization', incomingAuth)) for the API pathname.
Generated Oct 18, 2026, 9:45:27 AM
Re-enable Cloudflare Worker but instrument it to log incoming headers (mask tokens) and explicitly forward Authorization to origin (add request.headers.set('authorization', incomingAuth)) for the API pathname.
Check Cloudflare Transform Rules and Page Rules for any header removal; disable or adjust rules affecting /api/*.
In Cloudflare Access application settings, enable 'JWT assertion' forwarding or configure 'Forward original Authorization' to origin if available; alternatively accept Cloudflare's assertion header and update origin to use it.
Verify Origin Request Policy / HTTP/2 settings on Cloudflare and Vercel: ensure 'preserve client headers' or equivalent is enabled for Authorization, and test with curl via Cloudflare edge to origin.
If tests still fail, capture edge request headers from multiple CF edge locations (via Worker) and open Cloudflare support ticket with edge request samples.