Chrome使用https前缀本地开发网站 [英] Chrome prefixes local development sites with https

查看:438
本文介绍了Chrome使用https前缀本地开发网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Ubuntu上安装了一些更新,现在Chrome正在使用https为我的所有本地开发网站添加前缀。我没有安装任何证书,所以Apache拒绝连接,并且收到以下错误消息:

 此网站可以达不到
xyz.dev拒绝连接。
尝试:

检查连接
检查代理和防火墙
ERR_CONNECTION_REFUSED

我在Ubuntu 16.04上使用Chrome 63.0.3239.84



这些网站在Firefox 57.0.1上运行,



如何在Chrome中关闭此功能?

解决方案

您无法将其关闭。谷歌已经购买了.dev TLD,现在他们认为他们可以做他们认为最适合的TLD。

.be / chrome-force-dev-domains-https-via-preloaded-hstsrel =nofollow noreferrer> https://ma.ttias.be/chrome-force-dev-domains-https-via-preloaded- hsts 有更多关于整个问题的信息。



切换到另一个本地开发扩展(我通常更喜欢 .local - 希望他们在某个时候也不会让他们那些肮脏的小手指头,LOL),或者至少在Apache中安装一个自签名证书。

Installed some updates on Ubuntu and now Chrome is prefixing all of my local development sites with https. I haven't got any certificates installed so Apache is refusing to connect and I'm getting this error message:

This site can’t be reached
xyz.dev refused to connect.
Try:

Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED

I'm using Chrome 63.0.3239.84 on Ubuntu 16.04

The sites work in Firefox 57.0.1 so its a Chrome specific thing.

How do I switch this off in Chrome?

解决方案

You can’t switch it off. Google has bought the .dev TLD, so now they think they can do what they think is best with it.

https://ma.ttias.be/chrome-force-dev-domains-https-via-preloaded-hsts has more info on the whole issue.

Switch to another extension for local development (I usually prefer .local - hope they don’t get their grubby little fingers on that one at some point, too, LOL), or install at least a self-signed certificate in your Apache.

这篇关于Chrome使用https前缀本地开发网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆