MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / host-origin.e2e.test.ts

File host-origin.e2e.test.ts

packages/server/test/host-origin.e2e.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/**
2 * Host / Origin checks wired into HTTP + WS (ROADMAP M4.3).
3 *
4 * HTTP: the global `onRequest` Host hook rejects `Host: evil.com` with 403

Callers

nothing calls this directly

Calls 7

spawnFunction · 0.70
rawHttpGetFunction · 0.70
expectRejectedFunction · 0.70
wsUrlFunction · 0.70
openConnFunction · 0.70
receiveTypeFunction · 0.70
closeMethod · 0.65

Tested by

no test coverage detected