mirror of
https://github.com/deployflare/resend.git
synced 2026-01-13 16:18:02 +00:00
Initial commit
This commit is contained in:
11
index.js
Normal file
11
index.js
Normal file
@@ -0,0 +1,11 @@
|
||||
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 }
|
||||
Reference in New Issue
Block a user