Skip to content

Commit e9af1ac

Browse files
committed
fix: remove unneeded core headers and add Store
1 parent 711fd6a commit e9af1ac

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/content/adobe-commerce.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,7 @@ async function lookupProductSKU(urlkey, config) {
121121
const resp = await ffetch(`${config.coreEndpoint}?query=${encodeURIComponent(query)}`, {
122122
headers: {
123123
origin: config.origin ?? 'https://api.adobecommerce.live',
124-
'x-api-key': config.apiKey,
125-
'Magento-Environment-Id': config.magentoEnvironmentId,
126-
'Magento-Website-Code': config.magentoWebsiteCode,
127-
'Magento-Store-View-Code': config.storeViewCode,
128-
'Magento-Store-Code': config.storeCode,
124+
Store: config.storeViewCode,
129125
...config.headers,
130126
},
131127
// don't disable cache, since it's unlikely to change

0 commit comments

Comments
 (0)