App proxy is not redirecting

fayazrafeek
Shopify Partner
1 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 0 (0)