Build a (Request) => Promise<Response> handler for any web-standard runtime.
Pass FetchHandlerOptions.allowedOrigin to enable CORS: an OPTIONS
preflight is answered with 204 + the CORS headers, and POST responses carry
Access-Control-Allow-Origin. With no options the behaviour is unchanged
(same-origin; OPTIONS → 405).
Build a
(Request) => Promise<Response>handler for any web-standard runtime.Pass FetchHandlerOptions.allowedOrigin to enable CORS: an
OPTIONSpreflight is answered with204+ the CORS headers, and POST responses carryAccess-Control-Allow-Origin. With no options the behaviour is unchanged (same-origin;OPTIONS→ 405).