angular / angular-seed

Seed project for angular apps.
http://angularjs.org/
MIT License
13.04k stars 6.95k forks source link

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

Open marsrobertson opened 5 years ago

marsrobertson commented 5 years ago

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?

amitport commented 5 years ago

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)