Updated config and OPTIONS method for function.

This commit is contained in:
Michael Mainguy 2023-11-07 14:44:54 -06:00
parent bd1d868749
commit 39485dc6e1

View File

@ -130,7 +130,7 @@ export default async (req: Request, context: Context) => {
if (req.method == 'OPTIONS') { if (req.method == 'OPTIONS') {
const origin = req.headers.get('Origin'); const origin = req.headers.get('Origin');
console.log(origin); console.log(origin);
const res = new Response( return new Response(
new Blob(), new Blob(),
{ {
headers: { headers: {
@ -142,8 +142,6 @@ export default async (req: Request, context: Context) => {
}, },
status: 200 status: 200
}); });
console.log(JSON.stringify(res));
return res;
} }