How to open webpage without localhost

Viewed 533

I'm currently using live server on VSCode to test and run my webpage, now i wanna sent it to other people. The problem is using only the web browser there are some bugs saying that "URL scheme must be "http" or "https" for CORS request." which makes my website can't fetch

2 Answers

correct me if I am wrong but I am pretty sure that when you run live server on VSCode it only means that you can access the webpage or "localhost" if you are connected to your network.

So in short if you want other people to view your projects you need to host it somewhere. There are some good free hosting services which you can use, some that I can think about are Github Pages, Firebase, Netlify, Heroku and Vercel.

I hope this answers your question, if not I will happily answer some more ;)

I think this solution is easy and fast for use, you can use ngrok to public your URL of the current webpage that generates from ngrok for everyone can open your webpage. Just download you will get instruction from ngrok directly (link: https://ngrok.com), and the last choice you need you to deploy your code to Heroku, Netlify, etc.

Related