From f771119808b99cd0f583e070584fac3c32f1444e Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Fri, 24 Feb 2017 15:57:40 +0000 Subject: [PATCH] =?UTF-8?q?Secure=20session=20cookies=20weren=E2=80=99t=20?= =?UTF-8?q?working=20on=20http-localhost?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 1 - config/session.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5e069118..ca85154b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -56,7 +56,6 @@ before_script: - php artisan key:generate - php artisan migrate - php artisan db:seed - - chmod -R 777 storage/ - phantomjs --webdriver=127.0.0.1:9515 --webdriver-loglevel=DEBUG & - sleep 5 # Give artisan some time to start serving diff --git a/config/session.php b/config/session.php index cb7ff016..2ea2eed5 100644 --- a/config/session.php +++ b/config/session.php @@ -161,7 +161,7 @@ return [ | */ - 'secure' => true, + 'secure' => (config('app.env') != 'testing'), /* |--------------------------------------------------------------------------