adspace
Can you exclude uris from csrf protection in laravel? Explain
Answer Posted / Shruti Agarwal
To exclude URIs from CSRF protection in Laravel, use the $middleware property of the route and add the IlluminateFoundationHttpMiddlewareVerifyCsrfToken middleware. Then, set the '$middleware' array to an empty array for the specific routes you want to exclude.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers