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

Function corsPreflightResponse

apps/local/src/serve.ts:285–286  ·  view source on GitHub ↗
(req: Request, allowedHosts: ReadonlySet<string>)

Source from the content-addressed store, hash-verified

283};
284
285const corsPreflightResponse = (req: Request, allowedHosts: ReadonlySet<string>): Response =>
286 withCorsHeaders(req, new Response(null, { status: 204 }), allowedHosts);
287
288const closeProvidedHandlers = async (handlers: ServerHandlers): Promise<void> => {
289 await handlers.mcp.close();

Callers 1

fetchFunction · 0.70

Calls 1

withCorsHeadersFunction · 0.85

Tested by

no test coverage detected