419 unknown status 2c csrf token required 2c ajax csrf setup

Solutions on MaxInterview for 419 unknown status 2c csrf token required 2c ajax csrf setup by the best coders in the world

showing results for - "419 unknown status 2c csrf token required 2c ajax csrf setup"
Joshua
15 Mar 2016
1<script type="text/javascript">
2$.ajaxSetup({
3    headers: {
4        'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
5    }
6});
7</script>
8
Felix
08 Nov 2017
1in HTML <head></head> 
2add <meta name="csrf-token" content="{{ csrf_token() }}" />
3then 
4<script type="text/javascript">
5$.ajaxSetup({
6    headers: {
7        'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
8    }
9});
10</script>
11
similar questions