Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running apps on heroku in 'http' instead of 'https'

I have deployed the demo app of Michael Hartl's tutorial code onto heroku to see its working. The app opens in https://some-app-name.herokuapp.com. How do i get it to open in http rather than https?

like image 950
shatyajeet Avatar asked Dec 03 '12 09:12

shatyajeet


People also ask

Does Heroku use https by default?

herokuapp.com SSL certificate. No special configuration is needed, just access the app with https and you're secure by default.

Does Heroku require SSL?

While it has been communicated previously and documented in multiple places, SSL requirements for client connections have been loosely enforced on the Common Runtime platform.


1 Answers

Had the same problem. You have to change ssl settings for your app.

In environments/production.rb there must be following configuration config.force_ssl = false which by default is set to true.

Had to reset Firefox to take effect. Other browsers were ok.

like image 110
Renars Sirotins Avatar answered Sep 22 '22 09:09

Renars Sirotins