Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

前端通过yarn start运行后,浏览器报http://ide.test:8060/sockjs-node/info net::ERR_NAME_NOT_RESOLVED #350

Open
StaceyCode opened this issue Feb 28, 2019 · 1 comment

Comments

@StaceyCode
Copy link

在devServer.config.js配置proxy连接docker版后端,在进入工作区时报错。浏览器显示http://ide.test:8060/sockjs-node/info net::ERR_NAME_NOT_RESOLVED,console框显示“fsSocket error”,请问是websocket的连接问题吗?怎样处理可以在yarn start启动时正常运行?

@sunzp21
Copy link

sunzp21 commented Mar 5, 2019

proxy配置中启用ws,参考以下配置:
'/sockjs-node/*': {
target: 'ws://localhost:8080',
changeOrigin: true,
secure: false,
ws: true
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants