Skip to content

Commit

Permalink
NA - Fetch data with params
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiscoelho committed Mar 18, 2024
1 parent 05a1449 commit 0bc94ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ async function prepareSpecification() {
const isConfigurationResult = !isShipFocus && !isEngineFocus && isTemplate('configuration-result');
try {
const configurationsPromise = isConfigurationResult && fetch('https://main--edge-delivery-solari--netcentric.hlx.page/configurations.json', {
mode: 'cors', // no-cors, *cors, same-origin
cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached
headers: {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
},
});
Expand Down

0 comments on commit 0bc94ed

Please sign in to comment.