0

I have a Shopify extension that is created in react, but it is run by web workers that do not have access to the current URL. The only globals it has is fetch, console, and self.

Lets say I fetch from myshopify.com/checkouts/c/UUID, to this route:

app.get("/api/returnUrl", async (req, res) => {

})

How can I make this route return myshopify.com/checkouts/c/UUID ?

ripci
  • 27
  • 4
  • I think [this answer][1] will help you. [1]:https://stackoverflow.com/questions/72198376/nodejs-get-client-url-dns-name-on-server-side – Omar Fareed Feb 13 '23 at 22:37

0 Answers0