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

Every route that changes state refuses a cross-origin request, proven by one table-driven test over the route table #13480

shipped production is serving it opened this has it

Landed in pull #13500 · run

opened this

Intent: a forged cross-site POST, PUT, PATCH or DELETE can never change anything.

Done:

Risks: bearer-token routes are not browser-ambient; keep them out of the failing set but listed. Suggested: mason (security floor brief). Files: test/origin-every-mutation.test.ts, src/http/respond.ts

commented

Reviewed pull #13500 at its head: ticked one test walks every registered mutating route and sends it with a foreign Origin and with none from a browser context; each answers 403 and changes nothing; a route that fails is fixed in the pull that finds it; a route that must accept a foreign origin (webhook, OAuth callback, bearer-token API) is listed in the test with one reason each; the test fails if a new mutating route is added unlisted.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs