diff --git a/config/session.php b/config/session.php index fbe8084d..b501055b 100644 --- a/config/session.php +++ b/config/session.php @@ -149,6 +149,18 @@ return [ */ 'secure' => false, + + /* + |-------------------------------------------------------------------------- + | HTTP Access Only + |-------------------------------------------------------------------------- + | + | Setting this value to true will prevent JavaScript from accessing the + | value of the cookie and the cookie will only be accessible through + | the HTTP protocol. You are free to modify this option if needed. + | + */ + 'http_only' => true, ];