Magician
V2EX  ›  问与答

chrome 开发时 本地没有 https 怎么破

  •  
  •   Magician · Dec 24, 2017 · 2534 views
    This topic created in 3236 days ago, the information mentioned may be changed or developed.

    没注意 发现 chrome 更新了 现在本地的开发环境 没有 https 不能用 如何破?

    6 replies  •  2017-12-24 18:10:47 +08:00
    lhx2008
    lhx2008
    Dec 24, 2017 via Android❤️1
    1
    不要.dev 后缀?
    Nnull
    Nnull
    Dec 24, 2017 via iPhone❤️1
    2
    1.用.test
    2.自己颁发证书
    Pastsong
    Pastsong
    Dec 24, 2017❤️2
    3
    大部分 chrome 对 https 的限制都排除 localhost 的
    yhxx
    yhxx
    Dec 24, 2017❤️1
    4
    把 xxx.dev 换成 dev.xxx.com ?
    Magician
    Magician
    OP
    Dec 24, 2017
    5
    试试去
    honeycomb
    honeycomb
    Dec 24, 2017 via Android
    6
    chrome 在 about:flags 有一个设定,允许本地的 https 使用自签名证书。

    .dev 顶级域名被 Google 买下,它处于 chrome 的 HSTS preload list 里,前段时间 v2 有讨论过这个问题。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4564 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 09:42 · PVG 17:42 · LAX 01:42 · JFK 04:42
    ♥ Do have faith in what you're doing.