File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,21 @@ option:
58
58
59
59
$ ./node_modules/.bin/encore dev-server --hot
60
60
61
+ If you want to use SSL with self-signed domain, add
62
+ the ``--https ``, ``--pfx= ``, and ``--allowed-hosts ``
63
+ options to the ``dev-server `` command in the ``package.json `` file:
64
+
65
+ .. code-block :: diff
66
+
67
+ {
68
+ ...
69
+ "scripts": {
70
+ - "dev-server": "encore dev-server",
71
+ + "dev-server": "encore dev-server --https --pfx=$HOME/.symfony/certs/default.p12 --allowed-hosts=mydomain.wip",
72
+ ...
73
+ }
74
+ }
75
+
61
76
If you experience issues related to CORS (Cross Origin Resource Sharing), add
62
77
the ``--disable-host-check `` and ``--port `` options to the ``dev-server ``
63
78
command in the ``package.json `` file:
@@ -78,6 +93,7 @@ command in the ``package.json`` file:
78
93
Beware that `it's not recommended to disable host checking `_ in general, but
79
94
here it's required to solve the CORS issue.
80
95
96
+
81
97
.. _`webpack-dev-server` : https://webpack.js.org/configuration/dev-server/
82
98
.. _`HMR` : https://webpack.js.org/concepts/hot-module-replacement/
83
99
.. _`it's not recommended to disable host checking` : https://webpack.js.org/configuration/dev-server/#devserverdisablehostcheck
You can’t perform that action at this time.
0 commit comments