refs #3971 Cookie fixes
gitea/hedera-web/pipeline/head There was a failure building this commit
Details
gitea/hedera-web/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
f82ecaad91
commit
c2a601c30c
|
@ -68,7 +68,7 @@ class HtmlService extends Service {
|
|||
|
||||
$domain = explode(':', $_SERVER['HTTP_HOST'])[0];
|
||||
setcookie('vnVersion', $this->getVersion()->toString(), [
|
||||
'samesite' => 'Lax',
|
||||
//'samesite' => 'Lax',
|
||||
'domain' => $domain
|
||||
]);
|
||||
|
||||
|
|
|
@ -127,7 +127,7 @@ abstract class Service {
|
|||
$domain = explode(':', $_SERVER['HTTP_HOST'])[0];
|
||||
setcookie('vnVisit', $row['visit'], [
|
||||
'expires' => time() + 31536000, // 1 Year
|
||||
'samesite' => 'Lax',
|
||||
//'samesite' => 'Lax',
|
||||
'domain' => $domain
|
||||
]);
|
||||
$_SESSION['access'] = $row['access'];
|
||||
|
|
Loading…
Reference in New Issue