Skip to content

Commit

Permalink
Merge pull request #209 from opf/feature/rails3_ajax_session_loss
Browse files Browse the repository at this point in the history
  • Loading branch information
nkenneweg committed Jul 4, 2013
2 parents fc6328f + c614d5b commit 9105b09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -574,8 +574,10 @@ jQuery(document).ready(function($) {
var header = 'X-CSRF-Token',
token = csrf_meta_tag.attr('content');

request.setRequestHeader[header] = token;
request.setRequestHeader(header, token);
}

request.setRequestHeader('X-Authentication-Scheme', "Session");
});
// ajaxStop gets called when ALL Requests finish, so we won't need a counter as in PT
$(document).ajaxStop(function () {
Expand Down

0 comments on commit 9105b09

Please sign in to comment.