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

An app's fetch to an undeclared host fails with the forge's own words, and a test shows the text names the host and forge.json egress #13537

shipped production is serving it opened this has it

Landed in pull #13552 · run

opened this

The app must say plainly that the forge, not the service, refused.

Done:

Files: src/actions/egress_refused.ts, test/egress-words.test.ts

Risks: Never echo a request's text beyond the host name; escape it on output. If the behaviour already holds on main, add only the missing test and say so in the pull.

Brief: mason.

commented

Reviewed pull #13552 at its head: ticked a fetch to a host outside forge.json egress surfaces 'refused by this forge: <host> is not in this app's forge.json egress'; the page or log that shows it prints the same sentence; a test fails if the sentence changes or the host is omitted; bun test passes with a test that fails without this change.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs