DashboardclifetchWithTimeout redirect trust pin

fetchWithTimeout redirect trust pin

Category: gotcha
Confidence: 1.00
ID: 01a08db8-d759-7384-8c5b-2e57f523f630
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 0
Source session: 0yIbElBDrDPkcBsoR
Created: 2026-09-10 14:36:45
Updated: 2026-09-10 23:48:16

Content

Trap: validating only the initial OAuth refresh URL, or re-reading mutable active auth during redirects, can remove the original trust anchor while stale credentials, refresh-token bodies, or IAP/custom headers remain eligible for forwarding. Fix: pin trust to the original OAuth credential origin, follow redirects manually, and validate every destination before sending headers or a body. Reject cross-origin redirects, then rebuild headers and apply normal 301/302/303 method/body conversion. Never forward credentials across an unvalidated origin.

Move to: