From 0bc94ede5a0d47551063a4d2035179051450c633 Mon Sep 17 00:00:00 2001 From: Alexis Coelho Date: Mon, 18 Mar 2024 17:42:27 +0100 Subject: [PATCH] NA - Fetch data with params --- scripts/scripts.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/scripts.js b/scripts/scripts.js index 63cc698..85a8473 100644 --- a/scripts/scripts.js +++ b/scripts/scripts.js @@ -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', }, });