David Ramirez
David Ramirez

Reputation: 217

Non-secure website error using Stripe API

I created a shopping cart webpage in Node.js using the Stripe API and when I deployed it to Heroku I was getting a not secure webpage error my error is:

Your connection to this site is not secure You should not enter any sensitive information on this site (for example, passwords or credit cards), because it could be stole by attackers

Is there something that I can do to stop this because no images are loaded I only get this error in google Chrome. In Safari and Firefox I don't even get an error, but the images wont load.

Upvotes: 1

Views: 418

Answers (2)

Yoni Rabinovitch
Yoni Rabinovitch

Reputation: 5261

You can force your Heroku app to listen only on https. If you are using Express, this can be done using the solution described here.

Upvotes: 1

Ywain
Ywain

Reputation: 17523

You need to make sure that your site (or at least, the page with the payment form) is served over HTTPS.

Cf. Stripe's documentation for more information: https://stripe.com/docs/security#tls.

Upvotes: 0

Related Questions