报错提示:Mixed Content: The page at ‘https://’ was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint ‘ws://192.168.1.123:9898/ws’. This request has been blocked; this endpoint must be available over WSS.
解决方法:
public/index.html里面加入此行代码
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />
参考链接:https://blog.csdn.net/weixin_45816407/article/details/130925613