简体   繁体   English

如何解决我的 heroku 应用程序上的“不安全”警告?

[英]How to solve "Not Secure" warning on my heroku app?

I have a Heroku app which is on a free plan like myappsucks.herokuapp.com but recently that website is showing a not secure warning when I open it on my browser.我有一个 Heroku 应用程序,它采用免费计划,例如 myappsucks.herokuapp.com 但最近当我在浏览器上打开该网站时,它显示不安全警告。 Can anyone help me out how can I fix this at free of cost coz I heard Heroku is a free platform where u can deploy your Nodejs app.谁能帮助我如何免费解决这个问题,因为我听说 Heroku 是一个免费平台,您可以在其中部署您的 Nodejs 应用程序。

Any answer is appreciated =)任何答案表示赞赏=)

Heroku free apps do not use SSL. Heroku 免费应用程序不使用 SSL。 You will need to change to a paid plan to get it.您需要更改为付费计划才能获得它。

However, as a workaround, if you want to see "secure" in the browser, you can use free cloudflare account, using cloudflare as a dns proxy.但是,作为一种解决方法,如果您想在浏览器中看到“安全”,您可以使用免费的 cloudflare 帐户,将 cloudflare 用作 dns 代理。 Cloudflare will use HTTPS (secure) when your site is proxied through them, and can use HTTP when it retrieves your site.当您的站点通过它们代理时,Cloudflare 将使用 HTTPS(安全),并在检索您的站点时可以使用 HTTP。

It is not secure at all between cloudflare and heroku, but is an easy workaround for demo apps etc. cloudflare 和 heroku 之间根本不安全,但对于演示应用程序等来说是一个简单的解决方法。

Here is what the SSL setting should look like: SSL 设置如下所示:

在此处输入图像描述

and the DNS record:和 DNS 记录:

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM