Questions and discussions about using the Shopify CLI and Shopify-built libraries.
Hello nice supporters!
I tried searching high and low for a solution but couldn't find one. There is another thread on the same topic but that solution didn't work for me either!
So here is my code and error which App Bridge returns (see attached screenshots)
I also added request which was sent by Shopify. Host is encoded in request and it is definetely maxi-cart-test1.myshopify.com/admin
So I don't really understand what this error is about.
Hello,
Thanks for reaching out. The issue you're seeing is because you've hardcoded the `host` value. Per our documentation for Retrieve the host:
"The host
is provided as a URL query parameter appended to your application URL when your app is loaded inside the Shopify admin. The host
parameter is an encoded version of the shop origin"
Rather than hardcoding the value, try retrieving it from the URL. Hope this helps!
To learn more visit the Shopify Help Center or the Community Blog.
A couple things: