禁止Google浏览器强制跳转https

How to Stop Chrome from Automatically Redirecting to https

这几天在使用 google 浏览器打开公司的一个网站时,发现总是自动跳转到 https,以至于出现下面这个页面:

https://cdn.xiaobinqt.cn/xiaobinqt.io/20220330/3bc5e2df037f497fb589a7927540f8f5.png?imageView2/0/q/75|watermark/2/text/eGlhb2JpbnF0/font/dmlqYXlh/fontsize/1000/fill/IzVDNUI1Qg==/dissolve/52/gravity/SouthEast/dx/15/dy/15
ERR_SSL_PROTOCOL_ERROR

有时候浏览器太智能了也不是一件好事🤣。

复制链接 chrome://net-internals/#hsts用 Google 浏览器打开,这个页面,在最下面的 Delete domain security policies 填上需要禁止跳转的网站,然后点击Delete

https://cdn.xiaobinqt.cn/xiaobinqt.io/20220330/1dfabae20c7d4e3fb31303c1f99334fa.png?imageView2/0/q/75|watermark/2/text/eGlhb2JpbnF0/font/dmlqYXlh/fontsize/1000/fill/IzVDNUI1Qg==/dissolve/52/gravity/SouthEast/dx/15/dy/15
Delete domain security policies

然后重启浏览器,重启浏览器,重启浏览器,不然可能不生效。

这里有个需要注意的地方是,如果我们的网址是 http://g.xiaobinqt.cn:8000,那么Domain 的值填的是 xiaobinqt.cn