Added api-key header.

This commit is contained in:
Michael Mainguy 2023-08-15 10:17:34 -05:00
parent 4cd0423578
commit fb9f9e87c4

View File

@ -20,7 +20,7 @@ export const handler: Handler = async (event: HandlerEvent, context: HandlerCont
case 'OPTIONS': case 'OPTIONS':
const headers = { const headers = {
'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Origin': '*',
'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'
}; };
return { return {