File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -101,13 +101,13 @@ the following option:
101
101
// ...
102
102
103
103
.configureDevServerOptions (options => {
104
- options .disableHostCheck = true ;
104
+ options .allowedHosts = ' all ' ;
105
105
// in older Webpack Dev Server versions, use this option instead:
106
106
// options.firewall = false;
107
107
})
108
108
109
- Beware that ` disabling host checking `_ is not a recommended security practice in
110
- general, but here it's required to solve the CORS issue.
109
+ Beware that this is not a recommended security practice in general, but here
110
+ it's required to solve the CORS issue.
111
111
112
112
Hot Module Replacement HMR
113
113
--------------------------
@@ -125,5 +125,4 @@ your page. HMR works automatically with CSS (as long as you're using the
125
125
CSS. That is no longer needed.
126
126
127
127
.. _`webpack-dev-server` : https://webpack.js.org/configuration/dev-server/
128
- .. _`disabling host checking` : https://webpack.js.org/configuration/dev-server/#devserverdisablehostcheck
129
128
.. _`4.0 CHANGELOG` : https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md#400-beta0-2020-11-27
You can’t perform that action at this time.
0 commit comments