Print at Dec 27, 2025, 1:12:55 PM

Posted by vinaayaksingh at Jan 24, 2023, 6:19:36 PM
Re: html5 error 0
Browser blocks local file.
Assuming you have dev env setup
You can install very simple dev server & then access the html from browser via server.
Here are the steps:
1. Installing the Node.js http-server. Its simple. Open cmd prompt and type:
npm install http-server -g

Then go to the folder where your html file is there. open cmd prompt in that folder. and type command:
http-server . -p 8000

Now you can open http://127.0.0.1:8000/ and then from there open your html file.

Above is just one method. There are many such server available.