diff --git a/libs/navigation/navigation.js b/libs/navigation/navigation.js index 3c26aabb6d..9b3fc5ed67 100644 --- a/libs/navigation/navigation.js +++ b/libs/navigation/navigation.js @@ -65,7 +65,7 @@ export default async function loadBlock(configs, customLib) { env = 'prod', locale = '', theme, - allowedOrigins, + allowedOrigins = [], stageDomainsMap = {}, } = configs || {}; if (!header && !footer) { @@ -112,7 +112,7 @@ export default async function loadBlock(configs, customLib) { theme, ...paramConfigs, prodDomains, - allowedOrigins, + allowedOrigins: [...allowedOrigins, `https://main--federal--adobecom.aem.${env === 'prod' ? 'live' : 'page'}`], standaloneGnav: true, stageDomainsMap: getStageDomainsMap(stageDomainsMap), };