0👍
That’s by design, you aren’t supposed to hit the Admin API on the front-end due to the security reasons, mainly due to the fact that you’d need to embed auth keys in your front-end bundle and that’s always prone to disastrous effects.
You’ll need to route those requests to a backend app of your own and that’ll consume the API and proxy it to your front-end through App Proxies
See also:
Create product with Shopify Admin API
Can we get product by SKU using Shopify Storefront GraphQL API(NOT ADMIN)?
is that possible to use admin APIs in frontend directly in the store without app
Source:stackexchange.com