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

Function corsPreflightResponse

apps/cloud/src/mcp/agent-handler.ts:29–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29const corsPreflightResponse = (): Response =>
30 new Response(null, {
31 status: 204,
32 headers: {
33 "access-control-allow-origin": "*",
34 "access-control-allow-methods": "GET, POST, DELETE, OPTIONS",
35 "access-control-allow-headers":
36 "content-type, authorization, mcp-session-id, accept, mcp-protocol-version",
37 "access-control-expose-headers": "mcp-session-id, WWW-Authenticate",
38 },
39 });
40
41const jsonRpcResponse = (
42 status: number,

Callers 1

makeCloudMcpAgentHandlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected