From 6e16c409de56de08bdd21ccd6e685fdd0d56478d Mon Sep 17 00:00:00 2001 From: Michael Mainguy Date: Tue, 15 Aug 2023 10:29:26 -0500 Subject: [PATCH] Added api-key header. --- netlify/functions/nerdgraph/nerdgraph.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlify/functions/nerdgraph/nerdgraph.ts b/netlify/functions/nerdgraph/nerdgraph.ts index f953076..c7f9369 100644 --- a/netlify/functions/nerdgraph/nerdgraph.ts +++ b/netlify/functions/nerdgraph/nerdgraph.ts @@ -19,7 +19,7 @@ export const handler: Handler = async (event: HandlerEvent, context: HandlerCont break; case 'OPTIONS': 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-Methods': 'GET, POST, PUT, DELETE' };