Magician
V2EX  ›  问与答

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

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

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

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

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