Hi everyone,
apologies for potentially posting this to a wrong sub, but I need to develop an app, will connect to an external API and use the gift card API. I’m using the remix template. The app needs to be available in the app store.
I added a test fetch function to the loader function on the index page, just to see if contacting a test API will work, but I’m getting errors:
Blocked script execution in ’
My code is this:
export async function loader({ request }) {
const res = await fetch("https://jsonplaceholder.typicode.com/posts/1");
return json(await res.json());
}
Another thing: how do I get a token for an app created via the CLI? The Shopify docs on OAuth are not so straightforward.