Skip to content

Commit 1b7f9fa

Browse files
committed
minor symfony#14929 Encore dev-server: re-add host check warning (weaverryan)
This PR was merged into the 5.2 branch. Discussion ---------- Encore dev-server: re-add host check warning See: symfony#14895 (comment) Commits ------- 47d7639 re-adding warning about host check
2 parents 8308294 + 47d7639 commit 1b7f9fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

frontend/encore/dev-server.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ the ``firewall`` option:
9797
options.firewall = false;
9898
})
9999
100+
Beware that `it's not recommended to disable the firewall`_ in general, but
101+
here it's required to solve the CORS issue.
102+
100103
Hot Module Replacement HMR
101104
--------------------------
102105

@@ -113,3 +116,4 @@ your page. HMR works automatically with CSS (as long as you're using the
113116
CSS. That is no longer needed.
114117

115118
.. _`webpack-dev-server`: https://webpack.js.org/configuration/dev-server/
119+
.. _`it's not recommended to disable the firewall`: https://webpack.js.org/configuration/dev-server/#devserverdisablehostcheck

0 commit comments

Comments
 (0)