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

Function corsPreflightResponse

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

Source from the content-addressed store, hash-verified

317};
318
319const corsPreflightResponse = (req: Request, allowedHosts: ReadonlySet<string>): Response =>
320 withCorsHeaders(req, new Response(null, { status: 204 }), allowedHosts);
321
322const closeProvidedHandlers = async (handlers: ServerHandlers): Promise<void> => {
323 await handlers.mcp.close();

Callers 1

fetchFunction · 0.70

Calls 1

withCorsHeadersFunction · 0.85

Tested by

no test coverage detected