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?
In laravel 7.
Open file \App\Http\Middleware\VerifyCsrfToken.php
Disable for all routes
protected $except = [
'*',
];
Disable for some routes
protected $except = [
'mobile/*',
'news/articles',
];
I searched for a long time how to disable CSRF completely, there are many identical examples but they do not help