Skip to content

Commit

Permalink
Revert "[CV2-4007] update _checkdesk_session cookie permissions to en…
Browse files Browse the repository at this point in the history
…tire dom…" (#1959)

This reverts commit 06fc0a0.
  • Loading branch information
jayjay-w authored Jul 17, 2024
1 parent 06fc0a0 commit 93a1629
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 46 deletions.
3 changes: 0 additions & 3 deletions config/config.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,6 @@ development: &default
devise_unlock_accounts_after: 1
login_rate_limit: 10
api_rate_limit: 100

session_store_key: '_checkdesk_session_dev'
session_store_domain: 'localhost'
test:
<<: *default
checkdesk_base_url_private: http://api:3000
Expand Down
7 changes: 1 addition & 6 deletions config/initializers/session_store.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# Be sure to restart your server when you modify this file.

# Retrieve the session key and domain based on the environment using CheckConfig.
cookie_key = CheckConfig.get('session_store_key', '_checkdesk_session')
domain_setting = CheckConfig.get('session_store_domain', Rails.env.development? ? 'localhost' : '.checkmedia.org')

# Configure the session store with the dynamically obtained session key and domain.
Rails.application.config.session_store :cookie_store, key: cookie_key, domain: domain_setting
Rails.application.config.session_store :cookie_store, key: '_checkdesk_session'
37 changes: 0 additions & 37 deletions test/lib/check_session_store_test.rb

This file was deleted.

0 comments on commit 93a1629

Please sign in to comment.