mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-31 22:38:49 +01:00
fix csrf which changed with rails 2.3.11
This commit is contained in:
parent
736224aadb
commit
0d28115d18
4 changed files with 3 additions and 3 deletions
|
|
@ -847,6 +847,7 @@ $(document).ajaxSend(function(event, request, settings) {
|
|||
}
|
||||
request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
||||
}
|
||||
request.setRequestHeader("X-CSRF-Token", $('meta[name=csrf-token]').attr('content'));
|
||||
request.setRequestHeader("Accept", "text/javascript");
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue