I have set cookies to store them in active_record. And followed the documentation from guides.rubyonrails and suggestions from similar case but with no luck. So far I have this in my config/initializers/session_store.rb:
Application.config.session_store :active_record_store,
:expire_after => 1.weeks.to_i,
:key => '_webapp_session',
secure: Rails.env.production?
and my cookies stay insecure.
Aucun commentaire:
Enregistrer un commentaire