test(web): add a purpose header to the public-address suite (#1862)
Addresses Copilot review round 4: every file carries a header explaining its purpose, and this new suite had none. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HzuzRPJv7M8wGe3wyw5sSg Signed-off-by: cliffhall <cliff@futurescale.com>
This commit is contained in:
parent
69ca95656b
commit
5576d4e8b3
1 changed files with 13 additions and 0 deletions
|
|
@ -1,3 +1,16 @@
|
||||||
|
/**
|
||||||
|
* Public addresses for the MCP Apps listeners (#1862): `MCP_SANDBOX_FULL_ADDRESS`
|
||||||
|
* and `MCP_APP_ORIGIN_FULL_ADDRESS`, as parsed by `server/public-address.ts`.
|
||||||
|
*
|
||||||
|
* Pinned here: what each accepts and how it is normalized (`/sandbox` appended
|
||||||
|
* to a bare origin, the app origin kept origin-only), every refusal reason, the
|
||||||
|
* same-origin refusals that keep the sandbox and a dedicated app origin off the
|
||||||
|
* Inspector's own origin, the mixed-content warning, and that a refused value
|
||||||
|
* never leaks a secret (credentials, query, fragment, path) into the log. The
|
||||||
|
* listener-side rules — fixed port only, no trusted-ancestor collision — are in
|
||||||
|
* the sandbox and app-origin controller suites, where the bound port is known.
|
||||||
|
*/
|
||||||
|
|
||||||
import { describe, it, expect, beforeEach, afterEach, vi } from "vitest";
|
import { describe, it, expect, beforeEach, afterEach, vi } from "vitest";
|
||||||
import {
|
import {
|
||||||
resolveAppOriginPublicOrigin,
|
resolveAppOriginPublicOrigin,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue