angular-seed
angular-seed copied to clipboard
What is the reason to server on localhost, as opposed to default 0.0.0.0?
After looking at the docs: https://www.npmjs.com/package/http-server
I wanted to access my app from another machine.
Existing: "start": "http-server -a localhost -p 8000 -c-1 ./app",
My config: "start": "http-server -a 0.0.0.0 -p 8000 -c-1 ./app",
What is the reason to use localhost
in the angular-seed
repo?
IMO, serving from localhost
is a more secure default. You need to assume that seed projects are being used by everyone, that includes people that don't know what IPs are.
(though I'm not answering for the Angular team)