简体   繁体   中英

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. 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.

Any answer is appreciated =)

Heroku free apps do not use 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 will use HTTPS (secure) when your site is proxied through them, and can use HTTP when it retrieves your site.

It is not secure at all between cloudflare and heroku, but is an easy workaround for demo apps etc.

Here is what the SSL setting should look like:

在此处输入图像描述

and the DNS record:

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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