I just installed an SSL certificate on my site. Unfortunately it has broken the login functionality. After submitting the login form on the site it just redirects to the home pa
I had a similar issue while using Cloudflare's Flexible SSL. I changed it to Full, and activated SSL on my Heroku server.
Found the solution here: http://til.obiefernandez.com/posts/875a2a69af-cloudflare-flexible-ssl-mode-breaks-rails-5-csrf