(data, status, origin)
| 41 | } |
| 42 | |
| 43 | function jsonResponse(data, status, origin) { |
| 44 | return new Response(JSON.stringify(data), { |
| 45 | status, |
| 46 | headers: { |
| 47 | "Content-Type": "application/json", |
| 48 | ...corsHeaders(origin), |
| 49 | }, |
| 50 | }); |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * Validate common inputs: tool_id and session_hash. |
no test coverage detected