Cloudflare SSR route
Reverse proxy under /proxy/
A compact zfb example that forwards requests to a deterministic httpbin-compatible upstream while keeping proxy-specific headers under control.
Originhttps://httpbingo.org
Routepages/proxy/[...path].tsx
RuntimeCloudflare Worker
/proxy/anything/reverse-proxy?via=zfbRedirect rewriteReturns an upstream Location header rewritten back under /proxy/./proxy/redirect-to?url=/anything/redirect-target&status_code=302Cookie stripShows an upstream Set-Cookie response without forwarding the cookie./proxy/cookies/set?zfb_proxy_cookie=demoHeader policy stripKeeps ordinary headers while removing upstream CSP and HSTS./proxy/response-headers?Content-Security-Policy=default-src%20%27self%27&Strict-Transport-Security=max-age%3D31536000&X-Demo=kept