Liquid, JavaScript, themes, sales channels
Hey
I am trying to create a product subscription App and when I am trying to make an API call I get this error.
The URL you're calling is not allowed. Fetch calls can only come from example.domain.com
Is this expected? How do I fix this and where can I find all the restrictions if any?
Did you manage to solve this?
Yes, you can only call the URL specified in the extension settings. But I am still facing issues with local development.
In local I am getting The URL you're calling is not allowed. Fetch calls can only come from example.com
I think the simplest way to address this currently (if you just want to test things locally) is (as of argo-admin-cli 0.9.3):
Of course, next time you install the application code the settings will be overwritten. But, this will at least get you going until a permanent solution is complete. Make sure that your tunneled domain is also part of the .env.client (or .env.client.local) file used by "shopify serve" (https://www.npmjs.com/package/@shopify/argo-admin-cli/v/0.1.5#environment-variables).
Thank you so much for this. Been banging my head figuring out local development.
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024