diff --git a/nexus/media/js/nexus.js b/nexus/media/js/nexus.js index 5c3ac95..73c9cd2 100644 --- a/nexus/media/js/nexus.js +++ b/nexus/media/js/nexus.js @@ -34,7 +34,7 @@ jQuery.ajaxSetup({ } if (!safeMethod(settings.type) && sameOrigin(settings.url)) { - var cookieName = $('#nexus-constants').data('csrfCookieName'); + var cookieName = $('#nexus-constants').attr('data-csrf-cookie-name'); xhr.setRequestHeader("X-CSRFToken", getCookie(cookieName)); } }