Subject: | Add support for SameSite |
Cookies can now have SameSite attribute set:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#SameSite_cookies
The interface could be:
$cookie = Apache2::Cookie->new($r,
-name => 'foo',
-value => 'bar',
-expires => '+3M',
-domain => '.capricorn.com',
-path => '/cgi-bin/database',
-secure => 1
-samesite => "Strict" # or "Lax"
);
$cookie->samesite("Strict");