Updated OPTIONS method for user function

This commit is contained in:
Michael Mainguy 2023-10-17 12:11:37 -05:00
parent 900ed963c0
commit acafe25deb

View File

@ -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'
},