Vulnerability mitigation - revert secure cookies by default
This commit is contained in:
@@ -19,8 +19,8 @@
|
||||
$site = filter_input(INPUT_POST, 'site', FILTER_SANITIZE_STRING); // GET SANITARY SITE CHOICE
|
||||
setcookie ( 'app_site', $site, [
|
||||
'expires' => time() + 60*60*24*90,
|
||||
'secure' => true,
|
||||
'httponly' => true,
|
||||
'samesite' => 'Strict',
|
||||
'secure' => false,
|
||||
'httponly' => false,
|
||||
'samesite' => 'Lax',
|
||||
]);
|
||||
header('Location: index.php'); // GO HOME UNTIL WE ADD REFERER LOGIC
|
||||
|
||||
Reference in New Issue
Block a user