Skip to content

Commit

Permalink
set cookie SameSite option to 'Lax' for loginlinks to work as intended;
Browse files Browse the repository at this point in the history
fixes #1299

Signed-off-by: Michael Kaufmann <[email protected]>
  • Loading branch information
d00p committed Dec 10, 2024
1 parent 26c3c87 commit 0fb9357
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Froxlor/UI/Panel/UI.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public static function sendHeaders()
'domain' => self::getCookieHost(),
'secure' => self::requestIsHttps(),
'httponly' => true,
'samesite' => 'Strict'
'samesite' => 'Lax'
]);
session_start();

Expand Down
2 changes: 1 addition & 1 deletion lib/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@
'domain' => UI::getCookieHost(),
'secure' => UI::requestIsHttps(),
'httponly' => true,
'samesite' => 'Strict'
'samesite' => 'Lax'
];
setcookie(session_name(), $_COOKIE[session_name()], $cookie_params);
} else {
Expand Down

0 comments on commit 0fb9357

Please sign in to comment.