Improve security of cookies
This commit is contained in:
parent
bb01d22562
commit
87aca4864c
1 changed files with 2 additions and 2 deletions
|
@ -128,7 +128,7 @@ return [
|
||||||
|
|
||||||
'cookie' => env(
|
'cookie' => env(
|
||||||
'SESSION_COOKIE',
|
'SESSION_COOKIE',
|
||||||
Str::slug(env('APP_NAME', 'laravel'), '_') . '_session'
|
(env('SECURE_SESSION_COOKIE') ? '__Host-' : '') . Str::slug(env('APP_NAME', 'laravel'), '_') . '_session'
|
||||||
),
|
),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -196,6 +196,6 @@ return [
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'same_site' => 'lax',
|
'same_site' => 'strict',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Reference in a new issue