From 2fd3d1a6ddbbd4cab7277952a8962edab0afb642 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 6 Oct 2022 19:06:25 +0200 Subject: [PATCH] wip #5457 @0.25 --- resources/linkeditor/js/linkeditor.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/linkeditor/js/linkeditor.js b/resources/linkeditor/js/linkeditor.js index 1f6111bfd..2d14c9d57 100644 --- a/resources/linkeditor/js/linkeditor.js +++ b/resources/linkeditor/js/linkeditor.js @@ -15,6 +15,12 @@ window.tippy = tippy; require('jquery.scrollto'); require('jquery-contextmenu'); +$.ajaxSetup({ + headers: { + 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') + } +}); + function LinkEditor() { this.single = ['mobilefirst', 'portrait'].indexOf(FLUIDBOOK_DATA.settings.mobileNavigationType) >= 0; this.pw = FLUIDBOOK_DATA.settings.width; -- 2.39.5