Nov 30, 2015
5
Level 2
CSRF token and bootstrap model
Hello, I create one button and bootstrap model to popup.. in my model i have my login form. And when user try to login, i get error
TokenMismatchException in VerifyCsrfToken.php line 53:
I found out that this will work if i disable my csrf token... in Kernel.php. Also i try to add token in meta tags and then add jqery script, but again i have the same error. Do you maybe have any idea, how to avoid this ?
Level 4
I've found that you have to include {!! csrf_field() !!} following <form action="" method=""... otherwise it doesn't work.. so you would have this..
<form action="/your/action" method="POST">
{!! csrf_field() !!}
...
1 like
Please or to participate in this conversation.