admin管理员组

文章数量:1538748

原因:谷歌浏览器的 .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

本文标签: 转换为浏览器httpHTTPS