b6b53b7029
Replace the ?rd= query parameter in the Caddy→portal redirect with a _cpm_rd HttpOnly cookie (Secure, SameSite=Lax, Path=/portal, 10min TTL). The portal server component reads and immediately deletes the cookie, then processes it through the existing validation and redirect intent flow. This removes the redirect URI from the browser URL bar while maintaining all existing security properties (domain validation, server-side storage, one-time opaque rid). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>