wyongjian
V2EX  ›  问与答

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

  •  
  •   wyongjian · Jul 13, 2019 · 3436 views
    This topic created in 2488 days ago, the information mentioned may be changed or developed.

    "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 replies    2019-07-26 14:51:55 +08:00
    Q1ng
        1
    Q1ng  
       Jul 26, 2019
    这个是你用了 https 使用 http 就可以了。为啥不能用 s 我也不知道
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1250 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 52ms · UTC 16:55 · PVG 00:55 · LAX 09:55 · JFK 12:55
    ♥ Do have faith in what you're doing.