Rails SSL issue: (https://example.com) didn't match request.base_url (http://example.com)

后端 未结 3 1140
感动是毒
感动是毒 2021-02-13 10:51

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

3条回答
  •  爱一瞬间的悲伤
    2021-02-13 11:22

    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

提交回复
热议问题