Skip to content

Commit

Permalink
Remove same_site_cookie gem
Browse files Browse the repository at this point in the history
The gem does not support RACK 3 and in theory newer rails version support same site cookies via the `cookies_same_site_protection` config option.
  • Loading branch information
atruskie committed Dec 20, 2024
1 parent f425ede commit d49f229
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ RAILS_VERSION = '~> 7.2.1'
gem 'rack-cors', '~> 1.1.1', require: 'rack/cors'
gem 'rails', RAILS_VERSION

# deal with chrome and same site cookies
gem 'rails_same_site_cookie'

# bumping to latest RC because it has pre-compiled native binaries
gem 'nokogiri'

Expand Down
2 changes: 1 addition & 1 deletion config/initializers/new_framework_defaults_6_1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#
# This change is not backwards compatible with earlier Rails versions.
# It's best enabled when your entire app is migrated and stable on 6.1.
#Rails.application.config.action_dispatch.cookies_same_site_protection = :none
Rails.application.config.action_dispatch.cookies_same_site_protection = :none

# Generate CSRF tokens that are encoded in URL-safe Base64.
#
Expand Down

0 comments on commit d49f229

Please sign in to comment.