]> _ Git - fluidbook-toolbox.git/commitdiff
wip #5457 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 6 Oct 2022 17:06:25 +0000 (19:06 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 6 Oct 2022 17:06:25 +0000 (19:06 +0200)
resources/linkeditor/js/linkeditor.js

index 1f6111bfda2198be731f3fbad870d75c3a9a9737..2d14c9d577457b3d1719e22937a3d07b7c9cbd30 100644 (file)
@@ -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;