Hi, I am trying to configure my editor to point to a url to upload images as described here:
images_upload_url: '/images/upload',
I need to pass along a csrf token along with the XMLHttpRequest otherwise the server will deny it. I am manually setting an additional header on any XHR as defined here:
tinymce.util.XHR.on('beforeSend', function (e) {
e.xhr.setRequestHeader('X-CSRF-TOKEN', window.csrfToken);
});
which works just fine when using the spellchecker plugin. However, when the image upload request is sent via the file browser, the X-CSRF-TOKEN header is missing:

According to the images_upload_handler option, when not set, the default action would be to use a XHR to upload the images. This does not appear to be the case as the X-Requested-With:XMLHttpRequest is also missing from the headers.