MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / req

Function req

apps/local/src/serve-shared.test.ts:14–15  ·  view source on GitHub ↗
(headers: Record<string, string>)

Source from the content-addressed store, hash-verified

12
13const allowed = new Set<string>(DEFAULT_ALLOWED_HOSTS);
14const req = (headers: Record<string, string>): Request =>
15 new Request("http://127.0.0.1/api/scope", { headers });
16
17describe("isAllowedOrigin", () => {
18 it("allows loopback origins on any port", () => {

Callers 2

loadEntryCtorFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected