fix: some bug from security

This commit is contained in:
2021-06-22 15:54:42 +08:00
parent 526920f564
commit 4126ea7b4e
5 changed files with 17 additions and 2 deletions

View File

@@ -4,5 +4,5 @@
# Rails.application.config.session_store :active_record_store
# Be sure to restart your server when you modify this file.
Rails.application.config.session_store :cache_store, :expire_after => 24.hours, :httponly => false, :secure => false, key: '_educoder_session', domain: :all
Rails.application.config.session_store :cache_store, :expire_after => 24.hours, :httponly => true, :secure => false, key: '_educoder_session', domain: :all