[Answer]-Update to Django 1.5 ajax csrf middleware 403

1👍

If you use it this way:

$.ajax({
    type: 'POST',
    beforeSend: function(xhr) {
        xhr.setRequestHeader("X-CSRFToken", {{ csrf_token }});
    },
    ...

Does it work?

Leave a comment