wuwuta170
V2EX  ›  Node.js

用 vue 部署的 这个不知道怎么解决了 代码里也没找到使用 websocket 请求的地方,不知道为什么会请求到内网地址

  •  
  •   wuwuta170 · May 26, 2024 · 1535 views
    This topic created in 741 days ago, the information mentioned may be changed or developed.
    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 replies    2024-06-23 23:17:29 +08:00
    A3m0n
        1
    A3m0n  
       Jun 17, 2024
    看看有没有 iframe 。
    zhhbstudio
        2
    zhhbstudio  
       Jun 23, 2024
    根据之前的经验,有人在服务器上用的 npm run dev ...
    npm run build 之后,把 dist 目录下的文件甩过去就行了。然后 nginx 配置 root 指向 dist 目录。如果路由用的 history 模式,请相应调整 nginx 配置。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3022 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 08:42 · PVG 16:42 · LAX 01:42 · JFK 04:42
    ♥ Do have faith in what you're doing.