Added api-key header.

This commit is contained in:
Michael Mainguy 2023-08-15 10:29:26 -05:00
parent fb9f9e87c4
commit 6e16c409de

View File

@ -19,7 +19,7 @@ export const handler: Handler = async (event: HandlerEvent, context: HandlerCont
break; break;
case 'OPTIONS': case 'OPTIONS':
const headers = { const headers = {
'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Origin': 'https://cameras.immersiveidea.com',
'Access-Control-Allow-Headers': 'content-type, api-key', 'Access-Control-Allow-Headers': 'content-type, api-key',
'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE' 'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE'
}; };