This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const corsHeaders = { | |
| 'Access-Control-Allow-Origin': '*', | |
| 'Access-Control-Allow-Credentials': true, | |
| } | |
| // CLOUDFLARE | |
| event.respondWith( | |
| return new Response(JSON.stringify(data), { | |
| status: 200, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function timeout(ms) { | |
| return new Promise(r => setTimeout(r, ms)); | |
| } | |
| var files = [ | |
| { hi: 1 }, | |
| { hi: 2 } | |
| ] | |
| async function printFiles () { | |
| for (const file of files) { |