Skip to content

Commit a4570d5

Browse files
committed
-
1 parent eca9d7d commit a4570d5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

frontend/encore/dev-server.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ the following option:
101101
// ...
102102
103103
.configureDevServerOptions(options => {
104-
options.disableHostCheck = true;
104+
options.allowedHosts = 'all';
105105
// in older Webpack Dev Server versions, use this option instead:
106106
// options.firewall = false;
107107
})
108108
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.
111111

112112
Hot Module Replacement HMR
113113
--------------------------
@@ -125,5 +125,4 @@ your page. HMR works automatically with CSS (as long as you're using the
125125
CSS. That is no longer needed.
126126

127127
.. _`webpack-dev-server`: https://webpack.js.org/configuration/dev-server/
128-
.. _`disabling host checking`: https://webpack.js.org/configuration/dev-server/#devserverdisablehostcheck
129128
.. _`4.0 CHANGELOG`: https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md#400-beta0-2020-11-27

0 commit comments

Comments
 (0)