Looking for ways to fetch from localhost for development purposes

I am trying to expose a web application so Wix can fetch from it but have failed to do so, and even then, I am not sure what to do. I used an ASP dot NET Core Web API but that doesn’t seem to work (even with something like ngrok)

So I just want to ask in general, does someone know for a way to build and expose a web application for development purposes? Doesn’t have to be in C#, it could be anything as long as it lets me relay less on Wix limited JS capabilities

1 Like

For Wix’s servers to make a request to another app of yours, that app needs to have an address, there needs to be a way of reaching that app.

If you want to run that app on your machine, great, but you’ll need to expose it externally so that it may receive traffic

You’ll need a static IP address, so that your address doesn’t change every time your router resets.
In order for your communication to stay secure, you’ll probably need to purchase a domain, so that you can issue TLS certificates

Once you own a domain, point it to your external IP address, and issue certificates for it.
In your router’s configuration, you’ll need to set up port forwarding so that requests to HTTP/HTTPS will reach the specific computer you’ll be hosting your server on

Then, all that’s left is to actually make and host that server, you can use whatever language and framework you want, they all know to receive HTTP requests, which is what Wix will send them

1 Like