Skip to content

Firefly III: a personal finances manager

Other name for CSRF token in html and JS.

James Coled81c99bcda78
diff --git a/public/js/ff/firefly.js b/public/js/ff/firefly.js
index d0218514de..10ecacbcc3 100644
--- a/public/js/ff/firefly.js
+++ b/public/js/ff/firefly.js
@@ -32,7 +32,7 @@ $(function () {
$.ajaxSetup({
headers: {
- 'X-CSRF-Token': $('meta[name="_token"]').attr('content')
+ 'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content')
}
});
diff --git a/resources/views/layout/default.twig b/resources/views/layout/default.twig
index 1e8083fc3a..cab96e0533 100644
--- a/resources/views/layout/default.twig
+++ b/resources/views/layout/default.twig
@@ -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 %}