Other name for CSRF token in html and JS.

This commit is contained in:
James Cole 2018-02-01 19:39:55 +01:00
parent 1e2c979341
commit d81c99bcda
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ $(function () {
$.ajaxSetup({
headers: {
'X-CSRF-Token': $('meta[name="_token"]').attr('content')
'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content')
}
});

View File

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="_token" content="{{ csrf_token() }}">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="robots" content="noindex, nofollow, noarchive, noodp, NoImageIndex, noydir">
<title>
{% if subTitle %}