谷歌浏览器针对http强制转换为https的问题

原因:谷歌浏览器的 .dev和.app域名问题

 

 原文:

Chrome 63 now forces .dev domains to HTTPS

DECEMBER 07, 2017 / ERIC L. BARNES

 

Starting today, Google Chrome is rolling out v63 that now forces all .dev domains to use HTTPS. There is no workaround and they are apparently not changing this. Back in September Mattias Geniar wrote a post warning every one of the changes, and his post is a great primer on what the Chrome team has done.

This will affect everyone using .dev and if you are using Valet the recommended fix is to switch to a new unused extension like.test. To change this in valet you can run the following:

valet domain test

Based on this article by Danny Wahl he recommends you use one of the following: “.localhost”, “.invalid”, “.test”, or “.example”.

If all this sounds like too much trouble another viable option is to switch to Firefox as your development browser. It’s fast, has comfortable dev tools, and has really made a ton of improvements over the past few years.

 

翻译:

由于今天 Chrome 升级了浏览器版本到 63,现在所有的 .dev 和 .app 都将会自动将 HTTP 转到 HTTPS上,原因是谷歌已经拿下了 .dev 的顶级域名;在9月份的报告中已经对 .dev 即将带来的问题进行了说明。目前唯一的方法就是修改你的 .dev 或者 .app 域名了,或者换成火狐浏览器开发;建议将你的域名改成 .test 或者 .localhost

即使在host文件中写了,域名地址对应信息,也会自动跳转到https://下访问

方法:就是修改你的 .dev 或者 .app 域名了,或者换成火狐浏览器开发;建议将你的域名改成 .test 或者 .localhost

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值