How to configure app proxy local?

I have specified app proxy settings in the shopify.app.toml file

[app_proxy]
url = “``https://502ee834774d.ngrok-free.app``”
subpath = “sub”
prefix = “apps”

But Shopify is sending the request to the backend of the embeded app. I am not sure how to handle it. I am using Node+React template

1 Like

Hi @rafay,

I can certainly help you look into this behaviour!

In order to do so, can you please provide us with an example x-request-id from the response headers of the initial https://<shop_url>/apps/sub HTTP request made?

Hi @rafay,

I’m just following up here to see if this issue has been resolved on your end and we can close this thread out, or if you need any further help if you can provide any x-request-ids for us to help look into it further!

@Kellan-Shopify Thank for getting back to me but you took too long to respond and the issue has been resolved.

I’m glad to hear it’s been resolved!

For the future, with unexpected behaviours or issues occurring with specific API calls or HTTP Requests such as App Proxy Requests, for the quickest resolution I would recommend reaching out to the Shopify Support team via the Shopify Help Center directly, with specific examples of the API calls or HTTP Requests that aren’t behaving as expected, with the following information for quick and efficient investigation:

  • The full plain text HTTP Request, including URL, Body, and Headers (no access tokens)
  • The full plain text HTTP Response, including Body and Headers