Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

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

Open
marsrobertson opened this issue Jan 5, 2019 · 1 comment

Comments

@marsrobertson
Copy link

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
Copy link

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants