Cookie samesite defaults to Lax, fixes #232

This commit is contained in:
Milos Stojanovic
2021-07-01 13:57:43 +02:00
parent 20c9eb92a6
commit f237bd4aa8
2 changed files with 5 additions and 1 deletions

View File

@@ -2,6 +2,8 @@
## Upcoming...
* Cookie samesite defaults to Lax, fixes #232
## 7.5.2 - 2021-06-24
* Composer update

View File

@@ -44,7 +44,9 @@ return [
//$save_path = __DIR__.'/private/sessions';
$handler = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler($save_path);
return new \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage([], $handler);
return new \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage([
"cookie_samesite" => "Lax",
], $handler);
},
],
],