I'm facing a very strange problem at this moment with the App Proxy for my public Shopify app.
I have several stores which have my public app installed. A third party is sending POST webhooks to the app to update some data. But for some stores, this POST call was changed into a GET call.
App Proxy setup:
- Subpath prefix: apps
- Subpath: webhooks
- Proxy URL: https://mywebsite.com/webhooks
So when I POST call "https://shop.myshopify.com/apps/webhooks/magic-trick" with some payload, I receive a GET call instead for some specific stores...
I have no clue what's wrong.
Both POST and GET have shop, path_prefix, timestamp and signature set and came clearly via the App Proxy.
Please reach out to me if you need more details.
Solved! Go to the solution
You are in charge here, not Shopify. If you set up a POST callback in your front-end, you will get a POST call to your App. Expect it. If you set up a GET call in your front-end, your back-end App will receive a GET. Except it.
Shopify could care a less what call you make, it is up to you.
The pattern of use is to make callbacks to a relative resource, as in:
Note that there is zero need to involve any domains. It is a PROXY! Shopify knows what to do to the calls. If you include the domain in your front-end, you're doing something wrong, and the results will likely be less than stellar.