Using APIs from a different origin/domain

Solved
andrewscott
Shopify Partner
4 0 0

Thanks Greg and Bill! 

I think Bill was right about that it should be easy. 

const res = await fetch(
`https://${SHOPIFY_API_KEY}:${accessToken}@${shop}/admin/api/2020-10/themes/116224032917/assets.json`
)

 

In case anyone else is wondering the full set up:

https://community.shopify.com/c/Shopify-APIs-SDKs/I-want-to-call-rest-api-in-the-shopify-embedded-ap...

0 Likes