Browse Source

make cookies secure for production like envs (#1016)

pull/1017/head
Phil Lee 2 years ago committed by GitHub
parent
commit
24303b54ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      config/application.rb

6
config/application.rb

@ -35,5 +35,11 @@ module DataCollector
config.exceptions_app = routes
config.active_job.queue_adapter = :sidekiq
config.session_store(
:cookie_store,
key: "_data_collector_session",
secure: (Rails.env.production? || Rails.env.staging? || Rails.env.review?)
)
end
end

Loading…
Cancel
Save