From ee8a32c8cb0b807c88fa6d5c82e4b1d7d0306fd6 Mon Sep 17 00:00:00 2001 From: Christopher Cortes Date: Fri, 22 Nov 2019 11:41:05 +0100 Subject: [PATCH] fix(demo): enable 'disableHostCheck' option in 'ng serve' command to prevent 'Invalid Host/Origin header' error in IE Workaround mentioned in https://github.com/webpack/webpack-dev-server/issues/1604#issuecomment-453137871 --- demo-app/ng7/package.json | 2 +- demo-app/ng8/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demo-app/ng7/package.json b/demo-app/ng7/package.json index e1c9929..8239387 100644 --- a/demo-app/ng7/package.json +++ b/demo-app/ng7/package.json @@ -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", diff --git a/demo-app/ng8/package.json b/demo-app/ng8/package.json index 42e7287..31dc4e1 100644 --- a/demo-app/ng8/package.json +++ b/demo-app/ng8/package.json @@ -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",