Skip to content

Commit

Permalink
fix(demo): enable 'disableHostCheck' option in 'ng serve' command to …
Browse files Browse the repository at this point in the history
…prevent 'Invalid Host/Origin header' error in IE

Workaround mentioned in webpack/webpack-dev-server#1604 (comment)
  • Loading branch information
christophercr committed Nov 22, 2019
1 parent 9608d0f commit 48606e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo-app/ng7/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"clean": "npx rimraf ./dist ./reports",
"clean:modules": "npx rimraf ./node_modules package-lock.json",
"ng": "ng",
"start": "ng serve",
"start": "ng serve --disableHostCheck=true",
"build": "ng build",
"test": "ng test",
"test:ci": "ng test --watch=false --browsers=ChromeHeadless",
Expand Down
2 changes: 1 addition & 1 deletion demo-app/ng8/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"clean": "npx rimraf ./dist ./reports",
"clean:modules": "npx rimraf ./node_modules package-lock.json",
"ng": "ng",
"start": "ng serve",
"start": "ng serve --disableHostCheck=true",
"build": "ng build",
"test": "ng test",
"test:ci": "ng test --watch=false --browsers=ChromeHeadless",
Expand Down

0 comments on commit 48606e0

Please sign in to comment.