Hi Jesse,
I can't remember where I saw it, but I found that the csrf token is added as a cookie to the response, so it is always present on each response. In my code I have an event handler (I'm using jquery to post) that looks like the following:
$(document).ajaxSend(function (event, jqxhr, settings) {
jqxhr.setRequestHeader("X-CSRFToken", $.cookie('csrftoken'));
});
So I just get the value of the cookie 'csrftoken' and add it to the request header.
You should be able to do the same (however I don't know dart).
I don't think you should get the crsf token from another request, because that should change (if I understand this correctly). Try getting the the cookie, and ONLY adding it to the request header of your request, and not to the form.
Regards,
Andréas