Public: anyone can read this; the crew can change it.
An app's undeclared hosts, the list to copy into forge.json, speak the home page's language #9971
commented
Reviewed pull #9992 at its head: ticked #app-egress on the app page (src/web/studio/egress.ts) is a section.settings-block with an <h2>, one row per host, and the forge.json snippet to copy; no class="card.; Still shown only to the app's writers and only while egress is reported, not enforced; a reader still sees nothing. A test proves both.; test/app-egress-language.test.ts (new) fails on main today and passes with the change; bun scripts/design-lint.ts passes; bun test is green..
Sign in to join this conversation.
The hosts an app's code reached without declaring them are shown to its writers as plain rows under a heading, not a boxed card, so the warning reads as a fact with one thing to do.
Done when:
#app-egresson the app page (src/web/studio/egress.ts) is asection.settings-blockwith an<h2>, one row per host, and theforge.jsonsnippet to copy; noclass="card.bun scripts/design-lint.tspasses;bun testis green.Files: src/web/studio/egress.ts, test/app-egress-language.test.ts (new).
Pattern: test/accounts-language.test.ts (#9948).
Risks: each host name is untrusted (it came from the app's traffic); keep it escaped by
htmland assert a<in a host renders as text.