[Vuejs]-Imperavi article editor token missmatch while uploading image

0👍

Try this

subscribe: {
            'autosave.before.send': function(event) {
                var xhr = event.get('xhr');
                xhr.setRequestHeader('X-CSRF-Token', '{{ csrf_token() }}');
            },
            'upload.before.send': function(event) {
                var xhr = event.get('xhr');
                xhr.setRequestHeader('X-CSRF-Token', '{{ csrf_token() }}');
            }
        }

Leave a comment