Cyberbe Notes from Blackcat

The best way to solve this problem "X-CSRF-TOKEN"

Feb 182016

 add the following code to your main layout, and continue making your ajax calls normally:

<meta name="csrf-token" content="{{ csrf_token() }}" />

<script type="text/javascript">
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
</script>

Нет опубликованных комментариев.

Новый комментарий