From acafe25deb336d3d4e2b64189c7844bd92453018 Mon Sep 17 00:00:00 2001 From: Michael Mainguy Date: Tue, 17 Oct 2023 12:11:37 -0500 Subject: [PATCH] Updated OPTIONS method for user function --- netlify/functions/users/users.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/netlify/functions/users/users.ts b/netlify/functions/users/users.ts index a4cf863..1ef27d1 100644 --- a/netlify/functions/users/users.ts +++ b/netlify/functions/users/users.ts @@ -8,6 +8,8 @@ export const handler: Handler = async (event: HandlerEvent, context: HandlerCont return { headers: { 'Content-Type': 'application/json', + 'Allow': 'POST', + 'Access-Control-Allow-Methods': 'POST', 'Access-Control-Allow-Origin': origin ? origin : 'https://cameras.immersiveidea.com', 'Access-Control-Allow-Credentials': 'true' },