Another csrf Token problem (probably)

Im not experienced in jQuery but I think you need to add a request-header somehow like this:

headers: { ‘X-CSRF-Token’: csrfToken }

after:

$.ajax({
url: ‘categories/publish’,…