Skip to content

Comments

Add the option to generate a legacy cookie#23

Open
marcosteixeira wants to merge 3 commits intopschinis:masterfrom
marcosteixeira:generate_legacy_cookie
Open

Add the option to generate a legacy cookie#23
marcosteixeira wants to merge 3 commits intopschinis:masterfrom
marcosteixeira:generate_legacy_cookie

Conversation

@marcosteixeira
Copy link

https://web.dev/samesite-cookie-recipes/#handling-incompatible-clients

Workaround for some incompatible browsers like some versions of Safari to handle the SameSite option.

Enabled by

# config/initializers/rails_same_site_cookies.rb

RailsSameSiteCookie.configure do |config|
  config.generate_legacy_cookie = true
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant