mirror of
https://github.com/cloudflare/cloudflared.git
synced 2026-11-17 19:26:14 +00:00
To properly secure authorized requests, we need to strip any process-local session and authentication-state cookies before forwarding them. On protected responses, we also enforce `Cache-Control: private, no-store` and `Referrer-Policy: no-referrer` directives, to prevent sensitive data from being cached locally or by intermediaries and to block referrer URLs from leaking across requests. Response headers and cookies for Public Quick Tunnel are preserved.
142 lines
5.7 KiB
142 lines
5.7 KiB