美文网首页
xx.dev 被chrome强制转化成https

xx.dev 被chrome强制转化成https

作者: 9b559869875b | 来源:发表于2017-12-11 19:06 被阅读36次

    之前valet link的dev站点一直用的好好的,忽然就不能用了

    访问:http://blog.dev/

    被强制转到 https://blog.dev

    出现

    This site can’t be reached

    blog.dev refused to connect.

    如何解决?一开始我以为dnsmasq坏了

    https://stackoverflow.com/a/37730896

    brew unlink dnsmasq

    brew install dnsmasq

    brew prune

    brew services restart dnsmasq

    valet install

    但这样重装重启这些服务后,chrome浏览器还是访问不了这个,它还是会强制把http转成https

    然而,safari是可以访问的 http://blog.dev

    原来是chrome升级后,自动把.dev后缀的http转化成https协议访问

    参考如下回答:

    https://superuser.com/a/1251483

    If you have the same problem I do, it appears that the best solution is to change your domain to be something other than.dev.

    上述链接里的一个评论

    This was the issue for me as well. On my local development machine I utilized .dev for almost 10 years now. I did a recent Google Chrome update and it started redirecting all of my sites to https for no reason I could understand. Would have never thought it had to do with the .dev....

    用valet domain test 把原来的.dev改成.test, 好了,不再自动转成https了

    相关文章

      网友评论

          本文标题:xx.dev 被chrome强制转化成https

          本文链接:https://www.haomeiwen.com/subject/pqyvixtx.html