Updated config and OPTIONS method for function.

This commit is contained in:
Michael Mainguy 2023-11-07 14:25:41 -06:00
parent 3eab01027b
commit bd1d868749

View File

@ -131,7 +131,7 @@ export default async (req: Request, context: Context) => {
const origin = req.headers.get('Origin');
console.log(origin);
const res = new Response(
"",
new Blob(),
{
headers: {
'Allow': 'POST',
@ -142,7 +142,7 @@ export default async (req: Request, context: Context) => {
},
status: 200
});
console.log(res);
console.log(JSON.stringify(res));
return res;
}