V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
wyongjian
V2EX  ›  问与答

请教 v2 大佬用的 live-server 插件如何配置跨域?

  •  
  •   wyongjian · 2019-07-13 14:54:07 +08:00 · 2559 次点击
    这是一个创建于 1747 天前的主题,其中的信息可能已经有所发展或是发生改变。

    "live-server --open=wap/index.html --port=8080 --cors --proxy=/proxy:https://test.xxx.com/mobile" 这样写报错了 GET /proxy/index/index 500 104.113 ms - 514 Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: IP: 127.0.0.1 is not in the cert's list: at Object.checkServerIdentity (tls.js:228:17) at TLSSocket.onConnectSecure (_tls_wrap.js:1059:27) at TLSSocket.emit (events.js:182:13) at TLSSocket._finishInit (_tls_wrap.js:631:8)

    1 条回复    2019-07-26 14:51:55 +08:00
    Q1ng
        1
    Q1ng  
       2019-07-26 14:51:55 +08:00
    这个是你用了 https 使用 http 就可以了。为啥不能用 s 我也不知道
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3204 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 14:36 · PVG 22:36 · LAX 07:36 · JFK 10:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.