Solutio
1
Hi,
I see that it’s possible to create customers through and API https://shopify.dev/api/admin-rest/2022-01/resources/customer#[post]/admin/api/2022-01/customers.json .
But the documentation is only for Node.js and PHP.
Can I some code for the front end in order to create a customer?
Thank you
Solutio
2
I tried this request format but I’m receiving a CORS error:
fetch("https://SHOP.myshopify.com/admin/api/2022-01/customers.json", {
method: 'GET',
headers: {
"Content-Type": "application/json",
"X-Shopify-Access-Token": "KEY"
}
})
.then( resp =>{
console.log(resp)
});
Solutio
3
I found out that front end calls directly won’t work on the ADMIN API https://community.shopify.com/topic/502781 .
There should be a backend app built for this?
I also saw something about proxies. How would that work?