Bug 30708: Pass csrf_token to the Vue app
It's needed since bug 34369 to POST to the syspref route Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
7146ce1e92
commit
0f13508c1d
1 changed files with 3 additions and 0 deletions
|
@ -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 %]";
|
||||
|
||||
</script>
|
||||
|
||||
[% Asset.js("js/vue/dist/preservation.js") | $raw %]
|
||||
|
|
Loading…
Reference in a new issue