Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
That's actually not a good idea when you e.g. want to access the dev server from your mobile.
- Loading branch information
That's actually not a good idea when you e.g. want to access the dev server from your mobile.
a56d4c6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LinusBorg In my opinion, the potential drawbacks of this outweigh any benefits of increased usability. I wouldn't be sure that everyone using this package is aware of this default behavior. You are exposing your development server to any client on the network you are connected to in most scenarios, and in the worst case, to the world.
It is not uncommon for some developers to work while on a publicly accessible network. Personally, I discovered this when accessing peers' development environments without their knowledge. In this scenario, there is potential for leaking of API keys, unwanted exposure of source code, exposing private resources via proxy middleware etc...
a56d4c6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand that. To offer somethign for both side, we should make this a setting in
/config/index.js
, where people can decide weither to listen on localhost or "openly"