You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also apologize if this resulted from my misunderstanding. But to make SameSite=Lax appear in Set-Cookie, I updated lib/Plack/Middleware/Session/Cookie.pm like this:
5c5< use Plack::Util::Accessor qw(secret session_key domain expires path secure httponly samesite---> use Plack::Util::Accessor qw(secret session_key domain expires path secure httponly31c31< for my $attr (qw(session_key path domain expires secure httponly samesite)) {---> for my $attr (qw(session_key path domain expires secure httponly)) {144c144< =item session_key, domain, expires, path, secure, httponly, samesite---> =item session_key, domain, expires, path, secure, httponly
Background:
For security reasons our cookies must contain both SameSite and HttpOnly. I updated our .psgi like this:
I could not make the SameSite entry appear. I tried many permutations.
When I inspected Plack::Session::State::Cookie I realized that samesite was not listed alongside httponly. I addedsamesite everywhere, and voila, the flag immediately appeared!
First -- your software is awesome. Thank you.
I also apologize if this resulted from my misunderstanding. But to make
SameSite=Lax
appear in Set-Cookie, I updatedlib/Plack/Middleware/Session/Cookie.pm
like this:Background:
For security reasons our cookies must contain both
SameSite
andHttpOnly
. I updated our .psgi like this:However, only
HttpOnly
appeared in Set-Cookie:I could not make the SameSite entry appear. I tried many permutations.
When I inspected
Plack::Session::State::Cookie
I realized thatsamesite
was not listed alongsidehttponly
. I addedsamesite
everywhere, and voila, the flag immediately appeared!Once again, I apologize if I misunderstood something here.
Have a great day, and thanks again for some amazing modules.
The text was updated successfully, but these errors were encountered: