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

Function corsPreflightResponse

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

Source from the content-addressed store, hash-verified

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

Callers 1

fetchFunction · 0.70

Calls 1

withCorsHeadersFunction · 0.85

Tested by

no test coverage detected