From e11b0db5268e36851d86a55d417ce624f9c7782a Mon Sep 17 00:00:00 2001 From: msquare Date: Mon, 14 Aug 2023 11:11:27 +0200 Subject: [PATCH] =?UTF-8?q?fixes=20#1157:=20secure=20cookies=3F=3F=3F?= =?UTF-8?q?=C3=9F=C3=9F=C3=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/SessionServiceProvider.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Http/SessionServiceProvider.php b/src/Http/SessionServiceProvider.php index fdac9cb4..638635df 100644 --- a/src/Http/SessionServiceProvider.php +++ b/src/Http/SessionServiceProvider.php @@ -58,6 +58,7 @@ class SessionServiceProvider extends ServiceProvider return $this->app->make(NativeSessionStorage::class, [ 'options' => [ + 'cookie_secure' => true, 'cookie_httponly' => true, 'name' => $sessionConfig['name'], 'cookie_lifetime' => (int) ($sessionConfig['lifetime'] * 24 * 60 * 60),