MCPcopy Index your code
hub / github.com/lockfale/OSINT-Framework / jsonResponse

Function jsonResponse

src/worker.js:43–51  ·  view source on GitHub ↗
(data, status, origin)

Source from the content-addressed store, hash-verified

41}
42
43function jsonResponse(data, status, origin) {
44 return new Response(JSON.stringify(data), {
45 status,
46 headers: {
47 "Content-Type": "application/json",
48 ...corsHeaders(origin),
49 },
50 });
51}
52
53/**
54 * Validate common inputs: tool_id and session_hash.

Callers 4

handleTrackFunction · 0.85
handleVoteFunction · 0.85
handleReportFunction · 0.85
handleStatsFunction · 0.85

Calls 1

corsHeadersFunction · 0.85

Tested by

no test coverage detected