首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
广告
V2EX
›
Node.js
用 vue 部署的 这个不知道怎么解决了 代码里也没找到使用 websocket 请求的地方,不知道为什么会请求到内网地址
wuwuta170
·
31 天前
· 275 次点击
Mixed Content: The page at 'https://**.**/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://10.0.20.2:8080/ws'. This request has been blocked; this endpoint must be available over WSS.
2 条回复
•
2024-06-23 23:17:29 +08:00
1
A3m0n
9 天前
看看有没有 iframe 。
2
zhhbstudio
3 天前
根据之前的经验,有人在服务器上用的 npm run dev ...
npm run build 之后,把 dist 目录下的文件甩过去就行了。然后 nginx 配置 root 指向 dist 目录。如果路由用的 history 模式,请相应调整 nginx 配置。
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
1421 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms ·
UTC 17:26
·
PVG 01:26
·
LAX 10:26
·
JFK 13:26
Developed with
CodeLauncher
♥ Do have faith in what you're doing.