I have a theme app extension where I need to get some data from my apps back end to display. I am using a proxy to make the request but for some reason is not adding x-shopify-shop-domain or any other shopify headers and I end up with this error in console while running shopify app dev ‘No shop domain found in app proxy headers’. I have set up the proxy in shopify.app.toml and I have run `shopify app dev --reset` reinstalled the up but I cannot make it work the dev tunnel.
Is here something that I am missing or what could case the proxy to not include those headers.
Theme App Extensions should be able to work with App Proxies if they are setup correctly. However to confirm why your proxy requests are not sending the expected x-shopify-shop-domain headers, we would need more information to look into this internally, and I would recommend reaching out to Shopify Support via the Shopify Help Center with the following information, so we can help you in a fully authenticated support ticket where we can access the app and store in question.
The App and Store where this is occurring.
Details on your current proxy setup, including toml file content.
A specific example of this behaviour occurring, with a HAR file recording of the network events in the web browser showing the proxy calls being made without the expected headers.
Before you do reach out to Shopify Support to look into this further, I may recommend reviewing this existing thread in the old Community Forums, where another Shopify Partner provided a writeup on how to manage App Proxies with Theme App Extensions in great detail.
I’m just following up to see if this issue has been resolved on your end and we can close this thread as solved, and if not if you can provide us with the context requested for us to help look into this further.
I’m sorry to hear this behaviour is still occurring, and we can definitely help look into this further with our Developer Support team if you reach out through the Shopify Help Center with the following context:
The App and Store where this is occurring.
Details on your current proxy setup, including toml file content.
A specific example of this behaviour occurring, with a HAR file recording of the network events in the web browser showing the proxy calls being made without the expected headers.
I would offer to help look into it in this thread direclty, however this will require us to authenticate on the store in question, or via your partner account, through the Shopify Help Center, for us to have full access to ensure full security and privacy and allow us to view the shop and app internally to help our troubleshooting and investigation.
I’ll go ahead and close this thread for now, but please do feel free to post an update here after reaching out to our support team, after it’s resolved, to help any future Partners experiencing the same behaviour.