From ebba3a10d5f7adc09955dbfe86fa6658167e454f Mon Sep 17 00:00:00 2001 From: Tyrone Tse Date: Thu, 29 Feb 2024 10:02:58 -0600 Subject: [PATCH] Replaced with 'x-api-key': getBackendApiKey(), --- scripts/collections.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/collections.js b/scripts/collections.js index ac1a019e..86e0827e 100644 --- a/scripts/collections.js +++ b/scripts/collections.js @@ -2,6 +2,7 @@ import { getBearerToken } from './security.js'; import { getAssetHandlerApiKey, getDeliveryEnvironment, + getBackendApiKey, } from './polaris.js'; import { getPathParams, logError } from './scripts.js'; import { emitEvent, EventNames } from './events.js'; @@ -34,7 +35,7 @@ async function getRequestHeadersSearchCollections() { const token = await getBearerToken(); return { 'Content-Type': 'application/json', - 'x-api-key': 'asset_search_service', + 'x-api-key': getBackendApiKey(), Authorization: token, 'x-adobe-accept-experimental': '1', };