Google Chrome version 63 (official version) (64-bit), domain name ending with .dev, automatically jumps to https solution

Google Chrome 升级至 63 后的第一天早晨,打开:http://www.cmcp-backend.dev/ ,自动跳转为:https://www.cmcp-backend.dev/

1. On the morning of the first day after Google Chrome is upgraded to 63, open: http://www.cmcp-backend.dev/ , automatically jump to: https://www.cmcp-backend.dev/ , as shown in Figure 1

Google Chrome 升级至 63 后的第一天早晨,打开:http://www.cmcp-backend.dev/ ,自动跳转为:https://www.cmcp-backend.dev/
Figure 1

2. Open the URL: https://chromium-review.googlesource.com/c/chromium/src/+/669923 , it is .dev gtld preloads hsts, as shown in Figure 2

打开网址:https://chromium-review.googlesource.com/c/chromium/src/+/669923 ,为.dev gTLD预加载HSTS
Figure 2

3. One of the solutions is: the local development machine can provide HTTPS services, which are not considered for the time being, and the steps are too cumbersome

4. The preferred local development suffix is changed from .dev to other, .test gtld, which is the name reserved for testing (or development) purposes by IETF. Edit the hosts file, as shown in Figure 3

首选的本地开发后缀从.dev更改为其他,.test gTLD,它是IETF保留用于测试(或开发)目的的名称。编辑hosts文件
Figure 3

5. Edit the configuration file of nginx, as shown in Figure 4

编辑Nginx的配置文件
Figure 4

6. Open: http://www.cmcp-backend.test/ , which can be opened, but does not automatically jump to https, but I feel that this scheme is used to develop suffix, which is not pure enough, as shown in Figure 5

打开:http://www.cmcp-backend.test/ ,可以打开,未自动跳转 https,不过感觉此方案用于开发后缀,不够纯粹
Figure 5

7. There is also a better solution, add the .localhost domain name as a new standard. * All content in .localhost will be automatically converted to 127.0.0.1 without using the hosts or dnsmasq solution, edit the nginx configuration file, as shown in Figure 6

还有一个更好的方案,把.localhost域名作为一个新的标准添加进来。* .localhost中的所有内容都会自动转换为127.0.0.1,而无需使用hosts或dnsmasq解决方法,编辑Nginx的配置文件
Figure 6

8. Open: http://www.cmcp-backend.localhost/ , which can be opened, but does not automatically jump to https, as shown in Figure 7

打开:http://www.cmcp-backend.localhost/ ,可以打开,未自动跳转 https
Figure 7

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.