I want to see how I can disable CSRF token in Laravel and where I have to disable it. Is this good to disable it or not?
I want to see how I can disable CSRF token in Laravel and where I have to disable it. Is this good to disable it or not?
您可以通过编辑在少数路由上禁用CSRF.
App\Http\Middleware\VerifyCsrfToken
并将自己的路由名称添加到受保护的
$except = [] array.
It does not seems to be good practice as by doing this we are removing security feature of Laravel.