Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

App Proxy route redirects to password page

App Proxy route redirects to password page

Paladin
Visitor
1 0 1

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 10 (10)

usmanwixpa
Shopify Partner
4 0 1

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
19 0 4

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 10

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

Ole_Visionz
Shopify Partner
53 10 22

Same Problem here in 2024 ...

If you find my suggestions helpful, kindly express your feedback by liking or marking them as a solution.
Our (German) agency: visionz.de
Our Shopify App for custom pricing & unlimited product options: Visionz Easy Product Options
usmanwixpa
Shopify Partner
4 0 1

share your proxy url than i will suggest solution 

bootsgridDev
Shopify Partner
32 1 3

Have you found any solution for this . Please share I'm stuck in this .

bootsgridDev
Shopify Partner
32 1 3

Have you found any solution for this issue . Please share I'm exactly facing this issue. 

 

Please give any solution for it.

sr90
Shopify Partner
2 0 0