Posts

Showing posts from June, 2021

How to disable CSRF Token in Laravel and why we have to disable it?

Image
  You can Disable CSRF on few routes by editing. App\Http\Middleware\VerifyCsrfToken and add your own routes name in protected  Disable for all routes protected $except = [ '*' , ]; Disable for some routes protected $except = [ 'mobile/*' , 'news/articles' , ];