diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-04-25 18:11:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-25 18:11:16 +0200 |
commit | 2987c141485979c911a9da275c316567442a8190 (patch) | |
tree | adc6dc1d73c79b0ced41cefdd760d5ff3e1957a0 /Bugzilla/CGI.pm | |
parent | 91631953125a743702cbd6783b7d889721db3bbc (diff) | |
download | bugzilla-2987c141485979c911a9da275c316567442a8190.tar.gz bugzilla-2987c141485979c911a9da275c316567442a8190.tar.xz |
Bug 1456529 - Support SameSite attribute on session cookies
Diffstat (limited to 'Bugzilla/CGI.pm')
-rw-r--r-- | Bugzilla/CGI.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index 6e48a2355..9e8ba6c09 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -687,6 +687,8 @@ sub send_cookie { $paramhash{'-secure'} = 1 if lc( $uri->scheme ) eq 'https'; + $paramhash{'-samesite'} = 'Lax'; + push(@{$self->{'Bugzilla_cookie_list'}}, $self->cookie(%paramhash)); } |