()
| 672 | } |
| 673 | |
| 674 | function optionsResponse(): Response { |
| 675 | return emptyResponse(204, { |
| 676 | 'Access-Control-Allow-Headers': 'Content-Type', |
| 677 | 'Access-Control-Allow-Methods': 'GET, HEAD, POST, OPTIONS', |
| 678 | }) |
| 679 | } |
| 680 | |
| 681 | function textResponse(text: string, status: number, headers?: Record<string, string>): Response { |
| 682 | return withCors( |
no test coverage detected