Skip to content

Commit e0abe45

Browse files
christophercrSuperITMan
authored andcommitted
fix(demo): enable 'disableHostCheck' option in 'ng serve' command to prevent 'Invalid Host/Origin header' error in IE
Workaround mentioned in webpack/webpack-dev-server#1604 (comment)
1 parent 5200697 commit e0abe45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

demo-app/ng7/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"clean": "npx rimraf ./dist ./reports",
66
"clean:modules": "npx rimraf ./node_modules package-lock.json",
77
"ng": "ng",
8-
"start": "ng serve",
8+
"start": "ng serve --disableHostCheck=true",
99
"build": "ng build",
1010
"test": "ng test",
1111
"test:ci": "ng test --watch=false --browsers=ChromeHeadless",

demo-app/ng8/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"clean": "npx rimraf ./dist ./reports",
66
"clean:modules": "npx rimraf ./node_modules package-lock.json",
77
"ng": "ng",
8-
"start": "ng serve",
8+
"start": "ng serve --disableHostCheck=true",
99
"build": "ng build",
1010
"test": "ng test",
1111
"test:ci": "ng test --watch=false --browsers=ChromeHeadless",

0 commit comments

Comments
 (0)