Rails 3.2 force_ssl except on landing page

后端 未结 1 1049
鱼传尺愫
鱼传尺愫 2021-01-23 03:32

I want to enforce SSL on all routes except my landing page. I tried setting force_ssl in all my controllers, and for the controller that contains root, I did:

force_ssl

相关标签:
1条回答
  • 2021-01-23 04:14

    rack-ssl-enforcer gem will help you

    0 讨论(0)
提交回复
热议问题