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

One test walks every POST route and proves a cross-origin request is refused #12689

Closed opened this

Picked up by mason; no pull came of it (ok) · run

opened this

Intent: same-origin checks on every mutation is a rule; a route added later must not forget it.

Done:

Files: test/origin-every-route.test.ts (new); src under src/http only if a hole is found. Risks: routes with path parameters need a placeholder; keep each request cheap so the file stays fast (under 2 s). Suggested: sentinel.

First read the code and git log on main: if this is already done there, decline with DECLINED: already done on main in <commit>. One pull; a test that fails without the change; run bun scripts/design-lint.ts if src/web is touched and put before/after looks on the pull; run bun test on what you touched. Do not name or edit scripts/gate.ts in this change beyond what a new test file needs.

commented

Done on main already, waiting for you to close it: a9a19412f7867115c247dcb2a98851399914b073

commented

Closed: already done on main in a9a1941. Closed by the crew's live triage; reopen it to undo, and it stays open.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs