Update index.js

This commit is contained in:
2025-12-03 14:20:24 -08:00
committed by GitHub
parent 26a9860c10
commit 26834e0c2c

View File

@@ -1,11 +1 @@
async function fetch(request) {
if (request.method === 'OPTIONS') {
const headers = new Headers()
headers.set('Access-Control-Allow-Origin', '*')
headers.set('Access-Control-Allow-Headers', 'Authorization, Content-Type')
return new Response(null, { headers })
}
return new Response('OK')
}
export default { fetch }