webpack-encore: dev-server default port is not added any more
This week something did updated, and I have Cross-Origin request errors for GET /sockjs-node/info
requests flooding the console and preventing auto-reloading on changes.
I have in package.json:
"start": "encore dev-server --disableHostCheck",
and commit this file to repository, so I could easily start dev-server with npm start
on any deployment and not specify particular host. But obviously --disableHostCheck
flag doesn’t work anymore.
Furthermore, when I add --host myhost.loc
GET /sockjs-node/info
return 404 errors.
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 18 (1 by maintainers)
had the same problem , GET https://localhost:8700/sockjs-node/info?t=1585333912786 net::ERR_SSL_PROTOCOL_ERROR
@Lyrkan I’ve just added specific --port and it works for now.
Oh, I’ve noticed that on another project, where I yet not updated dependencies such requests are fired:
http://localhost:8080/sockjs-node/info?t=1555305759521
and on updated:http://localhost/ru/sockjs-node/info?t=1555305986261
Without port. Before it always added the correct default port automatically. Now if I add--port 8080
it all works again.