From ece604d3dd5c6fa8246f718bfb80429737a93f79 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 6 Oct 2023 10:56:05 +0200 Subject: [PATCH] Bug 30708: Pass csrf_token to the Vue app Content-Type: text/plain; charset=utf-8 It's needed since bug 34369 to POST to the syspref route Signed-off-by: Marcel de Rooy --- koha-tmpl/intranet-tmpl/prog/en/modules/preservation/home.tt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/preservation/home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/preservation/home.tt index 5740f51d5e..3969527783 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/preservation/home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/preservation/home.tt @@ -1,6 +1,7 @@ [% USE raw %] [% USE To %] [% USE Asset %] +[% USE Koha %] [% USE KohaDates %] [% USE TablesSettings %] [% USE AuthorisedValues %] @@ -34,6 +35,8 @@ const db_columns = [% To.json(db_columns) | $raw %]; const api_mappings = [% To.json(api_mappings) | $raw %]; + const csrf_token = "[% Koha.GenerateCSRF | $raw %]"; + [% Asset.js("js/vue/dist/preservation.js") | $raw %] -- 2.30.2