i`m using laravel 5.6 and trying to create react frontend (redis session). my problem is: the cookies and sessions not responding to local host from server(domain) can i set localhost to domain whitelist session or another way to do that.
i changed config/session.php
[
   'lifetime' => env('SESSION_LIFETIME', 120),
   'expire_on_close' => false,
   'encrypt' => false,
   'files' => storage_path('framework/sessions'),
   'connection' => null,
   'table' => 'sessions',
   'store' => null,
   'lottery' => [2, 100],
   'cookie' => env(
       'SESSION_COOKIE',
       str_slug(env('APP_NAME', 'laravel'), '_') . '_session'
   ),
   'path' => '/',
   'domain' => env('SESSION_DOMAIN', 'localhost:3338'),
   'secure' => env('SESSION_SECURE_COOKIE', false),
   
   'http_only' => true,
   
   'same_site' => null,
]
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire