Supply the csrf token in <head>, pass it along on xhrs
authorMarius Mathiesen <marius@gitorious.org>
Fri, 18 Jan 2013 09:29:25 +0000 (10:29 +0100)
committerMarius Mathiesen <marius@gitorious.org>
Fri, 18 Jan 2013 09:29:25 +0000 (10:29 +0100)
commit91a24c70073a770edf91b73790cb38492fd7d6f6
tree9a618e310e6a3f38f9d8e060fa36480b85d6ab2a
parentded49bbc1b9922f4f89343baec1829b5439d4d87
Supply the csrf token in <head>, pass it along on xhrs

This resolves issue #149, which would cause users to receive a 406
when doing AJAX requests and be logged out in the process.
app/views/layouts/_common_head.html.erb
public/javascripts/gitorious/jquery.js