Skip to content

Commit

Permalink
Adding Standalone gnav's default allowed origins (#3329)
Browse files Browse the repository at this point in the history
* Fix: Setting allowedOrigins for standalone gnav

* Fix: Default handling
  • Loading branch information
bandana147 authored Dec 9, 2024
1 parent 02bf866 commit e9f0bf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/navigation/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default async function loadBlock(configs, customLib) {
env = 'prod',
locale = '',
theme,
allowedOrigins,
allowedOrigins = [],
stageDomainsMap = {},
} = configs || {};
if (!header && !footer) {
Expand Down Expand Up @@ -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),
};
Expand Down

0 comments on commit e9f0bf2

Please sign in to comment.