Why is my app proxy not redirecting in theme app extension?

fayazrafeek
Shopify Partner
2 0 1

I am trying to build a Theme app extension, and I am trying to access the Shopify app backend api from extension.

 

I tried setting up proxy in partner dashboard.

Proxy configuration:

subpath-prefix : apps

subpath : get-timers

Proxy url : https://a3c7-2401-4900-1cb0-cf6-6580-4caf-38c7-5819.in.ngrok.io/api/

 

And I am using the fetch, in the app.js file in Theme app extension to call the proxy:

Screenshot 2023-03-30 at 7.27.12 AM.png

 

 

 

 

 

 

 

The response I am getting is :

Screenshot 2023-03-30 at 7.29.49 AM.png

 

 

And If I change proxy url to any other (ex. https://cat-fact.herokuapp.com/facts/), I am getting a 404 status in the response.

 

I am spending too much time on this issue. If anyone could help me with this, greatly appreciated.

Replies 2 (2)

igordomrev
Shopify Partner
2 0 2

did you manage to solve this ? I'm getting the same issue

ThangCQ
Shopify Partner
25 2 6

Uninstall and reinstall the app, the change in app proxy setup will be applied. It work for me.