SameSite-Attribut des Session-Cookies auf Strict setzen
authorMoritz Bunkus <m.bunkus@linet.de>
Mon, 11 Apr 2022 13:26:57 +0000 (15:26 +0200)
committerMoritz Bunkus <m.bunkus@linet.de>
Mon, 11 Apr 2022 13:26:57 +0000 (15:26 +0200)
SL/Form.pm

index 46c7f6e..fd79b96 100644 (file)
@@ -389,6 +389,7 @@ sub create_http_response {
                                      '-path'    => $uri->path,
                                      '-expires' => '+' . $::auth->{session_timeout} . 'm',
                                      '-secure'  => $::request->is_https);
+      $session_cookie = "$session_cookie; SameSite=strict";
     }
   }