Django has been updated to 1.3, and in fact, since it was 1.2.5, it has expanded the scheme to pass the request security token for the cross-site request to XMLHttpRequests. The Django people help the jQuery example apply a specific header for each XHR.
The prototype (and therefore Scriptaculous) should follow this pattern, but I cannot find a way to tell the prototype to add an X-CSRFToken header. It would be best to do this once so that it applies it through the application (e.g. for jQuery).
Is there any way to do this?
source share