Hello,
just bought gridphp-full v2.8
integration with Laravel OK but when i edit a cel return:{ “message”: “CSRF token mismatch.”, “exception”: ……….}
i put in my blade template in header
<meta name=’csrf-token’ content=”{{ csrf_token() }}”>
and in @section(‘content’)
<script type=”text/javascript”>
$.ajaxSetup({headers: {‘X-CSRF-TOKEN’:$(‘meta[name=”crsf-token”]’).attr(‘content’)}});
</script>
so it’s from Laravel… but how pass the this damned meta {{ csrf_token }}
thanks
Philippe
2 Answers
Your Answer