diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/system-preferences-api-client.js b/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/system-preferences-api-client.js index 9cfcabf08f..f37f3252ea 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/system-preferences-api-client.js +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/system-preferences-api-client.js @@ -16,7 +16,11 @@ export class SysprefAPIClient extends HttpClient { update: (variable, value) => this.post({ endpoint: "", - body: "pref_%s=%s".format(variable, value), + body: "pref_%s=%s&csrf_token=%s".format( + variable, + value, + csrf_token + ), headers: { "Content-Type": "application/x-www-form-urlencoded;charset=utf-8",