Merge pull request #417 from jonnybarnes/404-add-cookie-prefix

Improve security of cookies
This commit is contained in:
Jonny Barnes 2022-09-10 13:10:06 +01:00 committed by GitHub
commit 18fb386082
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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',
]; ];