rest - Makung requests to shopify apis in shopify liquid file
How can I make request to shopify api in shopify liquid file? As the shop name and store's live website have diff urls, it treats it as cross-originated request and require me to provide auth tokens and give net error 401. So how can I avoid that?
Be more specific about which API you want to access. Storefront API is available to you with a token. Admin is not. If you want access to the Admin APIs you must do it via an App Proxy.
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.