Struggling to fetch products.json from API, can anyone help?

Do you mean add this code to headers: {

‘Content-Type’: ‘application/json’,
‘X-Shopify-Access-Token’:“fb70610e4eb8cbd8c14557560e8a190a-1681990272”, ‘Access-Control-Allow-Origin’: ‘*’,

}

this way? Thats what i found on the internet

1 Like