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

Function corsPreflightResponse

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

Source from the content-addressed store, hash-verified

21import { McpSessionDOSqlite } from "./session-durable-object";
22
23const corsPreflightResponse = (): Response =>
24 new Response(null, {
25 status: 204,
26 headers: {
27 "access-control-allow-origin": "*",
28 "access-control-allow-methods": "GET, POST, DELETE, OPTIONS",
29 "access-control-allow-headers":
30 "content-type, authorization, mcp-session-id, accept, mcp-protocol-version",
31 "access-control-expose-headers": "mcp-session-id, WWW-Authenticate",
32 },
33 });
34
35const jsonRpcResponse = (
36 status: number,

Callers 1

makeCloudMcpAgentHandlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected