You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to constraints of our development environment my team usually accesses their local instance of our Angular application via their Windows machine name rather than an ip address or localhost. Since machine names are unique we can't set the host option in angular.json and as a result individual developers have to pass their machine name on the command line when running ng serve.
Describe the solution you'd like
Since our machine names have a common parent domain it would simplify our development setup if the allowedHosts option of webpack-dev-server was exposed as an option for ng serve. This would enable us to configure a host wildcard that includes all of our machine names without additional user-local configuration.
Describe alternatives you've considered
One alternative solution would be to enable the disableHostCheck option but this leaves our machines vulnerable to a dns rebinding attack.
Activity
[-]Expose webpack dev server allowedHosts option[/-][+]Expose webpack-dev-server allowedHosts option[/+]angular-automatic-lock-bot commentedon Oct 10, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
feat(@angular-devkit/build-angular): expose webpack-dev-server's allo…