1. 程式人生 > >laravel EncryptCookies中間件導致無法獲取自定義cookie

laravel EncryptCookies中間件導致無法獲取自定義cookie

exc 過濾 coo sha http laravel 中間件 獲取 light

解決辦法:

\app\Http\Middleware\EncryptCookies.php

  添加過濾cookie key

protected $except = [
        ‘token‘
    ];

  

laravel EncryptCookies中間件導致無法獲取自定義cookie