Added api-key header.

This commit is contained in:
Michael Mainguy 2023-08-15 10:36:36 -05:00
parent 5e37ec6623
commit 720a043588

View File

@ -20,6 +20,7 @@ export const handler: Handler = async (event: HandlerEvent, context: HandlerCont
case 'OPTIONS': case 'OPTIONS':
const headers = { const headers = {
'Access-Control-Allow-Origin': 'https://cameras.immersiveidea.com', 'Access-Control-Allow-Origin': 'https://cameras.immersiveidea.com',
'Access-Control-Allow-Credentials': 'true',
'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'
}; };