MCPcopy Create free account
hub / github.com/Wirasm/kild / originAllowed

Function originAllowed

engine/src/server.ts:45–46  ·  view source on GitHub ↗
(origin: string | undefined)

Source from the content-addressed store, hash-verified

43
44// Only the known UI clients' own origins may drive the engine from a browser context.
45// A request with no Origin is a non-browser client (the CLI / curl); browsers
46// always send one, so an unexpected Origin is a hostile web page — rejected.
47const ALLOWED_ORIGINS = new Set([
48 'http://localhost:1420',
49 'http://127.0.0.1:1420',

Callers 1

server.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected