- make sure you have all your conditionals closed.
- make sure your form has the token_field
{!! Form::token() !!}
Feb 15, 2017
3
Level 2
Route and X-CSRF-TOKEN L5.4 and Vue2
Hello! I'm using the new 5.4 Laravel distribution with Vue JS 2 and VueResource. So, I have a route that receives a contact post form:
Route::post('/contact/store', 'Contact\ApiContactController@store')->middleware('api', 'web');
The CSRF TOKEN is set in the request header by the bootstrap.js, that's the result:
X-CSRF-TOKEN:puJvuutEI5YPkvz0m68LwduR3GCs4RFzqVcEi0YX
Well, the problem is, I still getting the TokenMismatchException
Thanks!
Please or to participate in this conversation.