For my Custom App, I access the Online Store aspect of Extensions and turn on App Proxy. I am careful here to set three things.
-
I choose tools from the Subpath Prefix
-
I set the Subpath to be fuzzywuzzy
-
I set the Proxy URL to be https://myapp.ngrok.io/fuzzywuzzy
My App accepts incoming calls from Shopify at https://myapp.ngrok.io so I would expect the router to be triggered for a GET or POST to /fuzzywuzzy
I navigate to the merchant shop with this App installed. I open up any page and access the console. I find jQuery available so I do a quick $.get(‘/tools/fuzzywuzzy’) and Shopify returns me an error telling me I cannot access https://theshop.myshopify.com/fuzzywuzzy. Of course.. that is not a Proxied URL.
That tells me the App Proxy is not being handled by Shopify. Why? It is saved in the App, and should work. What else has to happen here to make the Proxy exchange with the backend?
