In CKEditor 4.5 beta, filetools plugin fails to set cookies while using cross domain upload url, for CORS to enable cookies we require to set XHR.withCredentials = true while upload XHR getting initiated.
How can i set XHR properties in filetools plugin in CKEditor 4.5.
You can get access to XHR object by listening to fileUploadRequest event and then you can set withCredentials flag to true.
editor.on( 'fileUploadRequest', function( evt ) {
var xhr = evt.data.fileLoader.xhr;
xhr.withCredentials = true;
} );
Working development sample is available here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With