fix: 修复前端开发时后端接口代理无法正常连接 WebSocket 的问题 #506
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
不确定开发团队是否有碰到这个问题,我这边将后端接口代理到自己服务器时, WebSocket 无法正常建立连接,需要添加参数才行。
另外,官网的开发文档可以做一些补充,如只需要调试前端开发环境时,可以将代理指向在线服务器的后端接口,而不是在本地起一个后端。