angular-seed icon indicating copy to clipboard operation
angular-seed copied to clipboard

What is the reason to server on localhost, as opposed to default 0.0.0.0?

Open marsrobertson opened this issue 6 years ago • 1 comments

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?

marsrobertson avatar Jan 05 '19 13:01 marsrobertson

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)

amitport avatar Mar 18 '19 13:03 amitport