I am using Shopify admin API in my store and this store is the development and basic plan store and the admin and Graphql API are working properly. But one of my client stores is live and I am using those API in this store but there is a CORS error. Also, I am trying to get information using Jquery AJAX.
I am gone stuck now so please help me or provide an alternative solution.
For more information please refer to the attached file.
It's not possible to make client side requests to Shopify's Admin API, as it's a private API.
You might wish to take a look at the Storefront API - here's a helpful post.
The JS SDK would technically be out of my scope, but the fetch for Metafields does seem possible going by the schema bump here.
You might like to check out this post here.
I am not sure of the exact error you are getting, but if you are whitelisting the metafields (the process to expose them is outlined here), and you are using this custom SDK query and importing this client, then you should be able to fetch them.
If still running into issues, I would throughly recommend creating an issue in the JS SDK here. Hope that helps.