Access shopify APIs in custom website

I want to Access shopify APIs in custom website, but getting CORS error, how can i whitelist my custom website URL in shopify ?

Hey @Yash_Makwana,

the Shopify Admin API is meant to be used in an secure server-side context. You should NEVER make requests using your API KEY on a public facing website.

May I ask what you are trying to accomplish? Maybe the Storefront API is what you are looking for.

Best regards,

Kevin :hatching_chick:

I need to update the product price before adding it to shopify cart.

Hey @Yash_Makwana,

I would suggest to look into Shopify Functions (Discounts) or using a custom endpoint.

Don’t call the Admin API from the client directly.

Kevin :hatching_chick:

Sure, thanks for the info.