I’ve spent hours on this, someone please help. Trying to retrieve metafields from the Shopify storefront API with axios. Metafields are exposed. The post request works in Postman just fine. See image below.
I have literally copied Postman’s axios code verbatim and, and it returns a 404 error every time. I have tried lots of different things but to no avail. Can someone please tell me what I’m doing wrong? Here is my code:
var data = JSON.stringify({
query: `query {
products(first:10) {
edges {
node {
id
handle
metafields(first:10){
edges {
node {
key
value
}
}
}
}
}
}
}`,
variables: {}
});
var config = {
method: 'post',
url: 'https://
Here is the error:

