Skip to content

Commit

Permalink
Remove unsupported :same_site option value [ci-skip]
Browse files Browse the repository at this point in the history
Rails 7.0 does not support opting out of the `SameSite` attribute by
specifying `same_site: nil`.  (However, #45501 will add support for this
in the next Rails release.)
  • Loading branch information
jonathanhefner committed Jul 24, 2022
1 parent aed8afa commit 3fc03ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions actionpack/lib/action_dispatch/middleware/cookies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ def use_cookies_with_metadata
# only HTTP. Defaults to +false+.
# * <tt>:same_site</tt> - The value of the +SameSite+ cookie attribute, which
# determines how this cookie should be restricted in cross-site contexts.
# Possible values are +nil+, +:none+, +:lax+, and +:strict+. Defaults to
# +:lax+.
# Possible values are +:none+, +:lax+, and +:strict+. Defaults to +:lax+.
class Cookies
HTTP_HEADER = "Set-Cookie"
GENERATOR_KEY = "action_dispatch.key_generator"
Expand Down

0 comments on commit 3fc03ac

Please sign in to comment.