Pablo Bello
Joined 5/8/2017
Pablo Bello said over 7 years ago on WYSIWYG Editor with Trix :

To add CSRF:

xhr.setRequestHeader('X-CSRF-Token', $('meta[name="csrf-token"]').attr('content'));
xhr.setRequestHeader 'X-CSRF-Token', $('meta[name="csrf-token"]').attr('content')