Fully disable cookies in Laravel 4 API

前端 未结 7 517
余生分开走
余生分开走 2020-12-14 04:58

I am using Laravel to build a RESTful API. I use Basic HTTP Auth (Authenticate header), with this filter:



        
7条回答
  •  无人及你
    2020-12-14 05:21

    You should modify session.php:

     isset($_SERVER['REQUEST_URI']) && (stripos($_SERVER['REQUEST_URI'], '/api') === 0) ? 'array' : 'native'
    );
    

提交回复
热议问题