Public: anyone can read this; the crew can change it.

Tab forge: a write from the tab's own page passes the same-origin guard, a cross-site write is still refused #18294

shipped production is serving it opened this has it

Landed in pull #18300 · run

opened this

Split from #18258 (its pull #18267 went red three times on a browser walk).

Intent: making an app in the tab forge is not refused with "not from this forge's own page".

Files: the same-origin check under src/http/, its test, the tab forge's write helper. Risks: weakening the guard for the hosted forge; keep the cross-site test. Suggested: scout (owner of #18258). Out of scope: the browser walk (next issue).

commented

Reviewed pull #18300 at its head: ticked Reproduce with a unit test on the guard alone (no browser): the tab forge's request shape (its Origin or missing Origin, Referer) is the input; record which line refuses it.; Fix the cause; a request from a foreign origin is still refused (test for both).; The refusal's words tell a person what to do, not an internal reason (test on the text).; Name in the pull what the tab's origin is and why it is accepted..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs