Skip to content

Commit

Permalink
Add support to samesite cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscomxs authored and dwaite committed Dec 17, 2019
1 parent 675ede6 commit adb79c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cookiejar/cookie_validation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@ def self.parse_set_cookie(set_cookie_value)
args[:secure] = true
when :httponly
args[:http_only] = true
when :samesite
args[:samesite] = keyvalue.downcase
else
fail InvalidCookieError, "Unknown cookie parameter '#{key}'"
end
Expand Down

0 comments on commit adb79c0

Please sign in to comment.