Skip to content

Commit

Permalink
Merge pull request #1323 from proditis/master
Browse files Browse the repository at this point in the history
Make our cookies a bit more strict
  • Loading branch information
proditis authored Nov 20, 2024
2 parents 0c97945 + c6d3d5d commit 1ab2ac6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion frontend/config/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,22 @@
'name' => 'red',
'timeout' => 3600 * 12,
'cookieParams' => [
'secure' => true,
'sameSite' => 'Strict',
'lifetime'=> 3600 * 12,
'httpOnly' => true
],
],
'user' => [
//'class' => '\app\components\User',
'identityClass' => '\app\models\Player',
'enableAutoLogin' => true,
'identityCookie' => ['name' => '_identity-red', 'httpOnly' => true, /*'sameSite'=>'Lax'*/],
'identityCookie' => [
'name' => '_identity-red',
'secure' => true,
'httpOnly' => true,
'sameSite'=>'Strict'
],
],
'errorHandler' => [
'errorAction' => 'site/error',
Expand Down

0 comments on commit 1ab2ac6

Please sign in to comment.