Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
Fix bug in CSRF cookie extraction
Browse files Browse the repository at this point in the history
Fix a name bug from disqus#25 / d3131d4.
  • Loading branch information
Adam Chainz authored and delinhabit committed Mar 17, 2016
1 parent 586b3d7 commit 757b6a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nexus/media/js/nexus.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
Expand Down

0 comments on commit 757b6a1

Please sign in to comment.