Browse Source

make cookies secure for production like envs

pull/1016/head
Phil Lee 4 years ago
parent
commit
538171a23d
  1. 6
      config/application.rb

6
config/application.rb

@ -35,5 +35,11 @@ module DataCollector
config.exceptions_app = routes config.exceptions_app = routes
config.active_job.queue_adapter = :sidekiq 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
end end

Loading…
Cancel
Save