From d81c99bcda782d32836ac8c783933717e672e991 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 1 Feb 2018 19:39:55 +0100 Subject: [PATCH] Other name for CSRF token in html and JS. --- public/js/ff/firefly.js | 2 +- resources/views/layout/default.twig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 @@ - + {% if subTitle %}