App proxy showing redirects to wrong url

Hugo92
Visitor
2 0 0

Hi! I have app proxy settings.
Screenshot_1.png

 

I try for example to use this url https://my-store.myshopify.com/apps/my/annotated-layout

but always redirects me here https://my-store.myshopify.com/auth?shop=my-store.myshopify.com


Any ideas why this is happening?



Reply 1 (1)

hassain
Shopify Staff (Retired)
624 104 188

Hi @Hugo92 ,

 

Here's an old forum post that seems to be describing the same problem with a solution: https://community.shopify.com/c/Shopify-Apps/I-setup-my-app-proxy-but-when-i-visit-the-url-i-get-red...

 

you have to modify/remove verify request middleware from the api calls. Ideally you'll replace it with some middleware that will verify that the calls are coming from shopify.

 

To learn more visit the Shopify Help Center or the Community Blog.