Skip to content

Commit 3028dac

Browse files
committed
There is new cookie param exists now
The SameSite attribute of the Set-Cookie HTTP response header allows you to declare if your cookie should be restricted to a first-party or same-site context.
1 parent 5a72946 commit 3028dac

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Makefile.PL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ WriteMakefile(
99
AnyEvent => 5,
1010
'Digest::SHA1' => 2,
1111
'JSON::XS' => 3,
12-
'HTTP::Easy' => 0.02,
12+
'HTTP::Easy' => 0.04,
1313
},
1414
ABSTRACT_FROM => 'lib/AnyEvent/HTTP/Server.pm', # retrieve abstract from module
1515
AUTHOR => 'Mons Anderson <[email protected]>',

lib/AnyEvent/HTTP/Server.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ AnyEvent::HTTP::Server - AnyEvent HTTP/1.1 Server
88

99
our $VERSION;
1010
BEGIN{
11-
$VERSION = '1.99996';
11+
$VERSION = '1.99997';
1212
}
1313

1414
use AnyEvent::HTTP::Server::Kit;

lib/AnyEvent/HTTP/Server/Req.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ BEGIN {
375375
push @c, "path=" . $p;
376376
push @c, "Secure" if $o->{secure};
377377
push @c, "HttpOnly" if $o->{httponly};
378+
push @c, "SameSite=" . $o->{samesite} if $o->{samesite};
378379
push @bad, "\u\Lset-cookie\E: ". join('; ',@c) .$LF;
379380
}
380381
}

0 commit comments

Comments
 (0)