-I need to call my backend function to create a metafield in a user from javascript plain Asset Extension: i’ve already tried to call my function using react from a Page Object and it’s all OK (whitout proxy obvs) but when i call the Route from JS FrontEnd it returns an Html response with NGROK
Hi! We resolved the problem in this way: We Edit the EndPoint API to accept Options type request.
Shopify extension Native JS only do Options Request, you don’t need the proxy that doesn’t work.
Since Shopify is relying quite heavily on this ngrok already they could quite easily just detect that when using ngrok address they need to add header ngrok-skip-browser-warning to the proxy requests they do on backend.
It seems though that also setting a custom user agent value (as they instruct to do on the Ngrok blog) also gets me some progress. It maybe somehow breaking my Shopify API call to /apps/proxy/, but at least not the ngrok error anymore.