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
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.
new above
offline
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.