Reputation: 1525
I am developing a multitenant system I was using Angular CLI 1.0.0 So when I go to localhost or asd.localhost(*.localhost) regex .It serves the application normally. Last I upgraded to 1.0.1. When I go to asd.localhost It says Invalid Host Headers .They say webpack has put some security patch. How can I allow subdomain to angular application for development purspose.
Upvotes: 3
Views: 1107
Reputation: 5171
Just use "--disable-host-check" parameter
ng serve --disable-host-check
Enjoy!
Upvotes: 5