App Proxy route redirects to password page

Paladin
Visitor
1 0 0

Hi everyone,

I am developing a public app on a development store. When I try to access the app proxy on this store, it always redirects me to the /password page. I have seen this mentioned on the forums before but never with an answer, so sorry if I have missed something.

I need to access this app from a different app of mine, so I set up an app proxy on my development store, and I have set up my localhost with Ngrok. However, when I try to access the app proxy, whether it is from my other app, the browser, or Postman, I always get redirected to the /password page.

Specifically:
I have a developer store that is password protected by default: https://my-example-shop.myshopify.com
I
 have a Laravel app running on my localhost, tunneled with Ngrok: https://example.ngrok.io. Accessing my app directly with the Ngrok URL works correctly.
I have set up an app proxy with the following:

Subpath prefix: apps
Subpath: proxy
Proxy URL: https://example.ngrok.io

In the development store, the App Proxy URL shows as https://my-example-shop.myshopify.com/apps/proxy

However, when I enter that URL, it receives a 302 status, then redirects to https://my-example-shop.myshopify.com/password
Ngrok does not show any attempts to access my app.

My laravel app is using this package: https://github.com/osiset/laravel-shopify and works correctly inside the store. 

How am I supposed to access my app via the App Proxy if it always redirects to /password?

Replies 7 (7)

usmanwixpa
Shopify Partner
3 0 0

usually this error occurs when you give store url instead of app url.check proxy url

liuil
Shopify Partner
2 0 0

could you tell me how to deal with it

921Kiyo
Shopify Partner
14 0 1

Could you tell me how to fix this? From the frontend client side, we make post request to store url/ + proxy subpath and prefix correct?

liuil
Shopify Partner
2 0 0

I also have this problem , how do I fix it , thank you for you 

phillip12
Shopify Partner
16 2 7

I'm having the exact same issues 2 years later... Would be awesome if someone could post a solution.

Ole_
Shopify Partner
41 8 17

Same Problem here in 2024 ...

If you find my suggestions helpful, kindly express your feedback by liking or marking them as a solution.

visionz.de
usmanwixpa
Shopify Partner
3 0 0

share your proxy url than i will suggest solution