I am attempting to use Direct API Access following the instructions outlined here. However, as soon as I make a fetch request, I encounter the following error:
Fetch API cannot load shopify:admin/api/graphql.json. URL scheme "shopify" is not supported.
I have enabled direct access in my shopify.app.toml configuration:
I created a brand new app in the Partners Dashboard using cli’s app config link, which prompted me to choose a TOML file name. I selected a new TOML file name and updated the newly created TOML file to match the one I had previously, except for the client_id, name, and handle values.
In my app, I also updated the key and secret for backend accordingly.
When I deployed the exact same code to this new app, the error URL scheme “shopify” is not supported. not appeared in console. Direct API access seems to be working in new app.
I’m not entirely sure why the same code didn’t work with my existing old app but worked fine with the newly created one.