From 720a043588c0ff5bbe74133926f05011bf1a1f83 Mon Sep 17 00:00:00 2001 From: Michael Mainguy Date: Tue, 15 Aug 2023 10:36:36 -0500 Subject: [PATCH] Added api-key header. --- netlify/functions/nerdgraph/nerdgraph.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/netlify/functions/nerdgraph/nerdgraph.ts b/netlify/functions/nerdgraph/nerdgraph.ts index 1097722..d671dc4 100644 --- a/netlify/functions/nerdgraph/nerdgraph.ts +++ b/netlify/functions/nerdgraph/nerdgraph.ts @@ -20,6 +20,7 @@ export const handler: Handler = async (event: HandlerEvent, context: HandlerCont case 'OPTIONS': const headers = { 'Access-Control-Allow-Origin': 'https://cameras.immersiveidea.com', + 'Access-Control-Allow-Credentials': 'true', 'Access-Control-Allow-Headers': 'content-type, api-key', 'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE' };