Vivek
Vivek

Reputation: 1525

Angular CLI(v.1.0.1) doesn't allow subdomain for Developement Purspose : Invalid Host Headers

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

Answers (1)

Simon Borsky
Simon Borsky

Reputation: 5171

Just use "--disable-host-check" parameter

ng serve --disable-host-check

Enjoy!

Upvotes: 5

Related Questions