(response: Response)
| 688 | } |
| 689 | |
| 690 | function withCors(response: Response): Response { |
| 691 | const headers = new Headers(response.headers) |
| 692 | headers.set('Access-Control-Allow-Origin', '*') |
| 693 | |
| 694 | return new Response(response.body, { |
| 695 | headers, |
| 696 | status: response.status, |
| 697 | statusText: response.statusText, |
| 698 | }) |
| 699 | } |
no test coverage detected