隐私错误 Your connection is not private
当我尝试访问我注册为 CNAME
的 url 时显示(使用 Chrome) .
我开发了 Rails 应用,这是第一次使用 Heroku。
虽然当我使用原始网址时没有显示错误,例如https://floating-fortress-99999.herokuapp.com/
,我使用www.my_app.com
时显示错误我得到了。
浏览器上的所有错误信息如下;
Your connection is not private
Attackers might be trying to steal your information from www.my_app.com (for example, passwords, messages, or credit cards).
NET::ERR_CERT_COMMON_NAME_INVALID
This server could not prove that it is www.my_app.com; its security certificate is from *.herokuapp.com. This may be caused by a misconfiguration or an attacker intercepting your connection.
我可以显示
www.my_app.com
当我点击链接时 Proceed to www.my_app.com (unsafe)
在浏览器上。是否可以避免显示“隐私错误”?
如果您能告诉我如何避免此错误,我们将不胜感激。
最佳答案
2020 年更新答案
Heroku 现在为免费层以上的所有层提供自动证书管理,允许进行极其简单的设置,让 https 为您的网站工作。
要设置它:
$7/月)
heroku certs:auto:enable -a yourappname
heroku domains
.您应该获得自定义域的列表及其 DNS 目标的列表。在运行 DNS 目标上方的命令后,您应该以 .herokudns.com
结尾。而不是 .herokuapp.com
. .herokudns.com
应用程序而不是通用 .herokuapp.com
在完成这些步骤后,您当然可能需要等待一段时间才能使 DNS 更改生效。但是现在您已经设置好了一切! Ta Da,您有 DNS 为您服务!
有关任何这些步骤的更多信息,请查看 heroku's article here
关于ruby-on-rails - Heroku:显示隐私错误 "Your connection is not private",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37094458/