From abee5c5c02e9486d09b447377d2154a681551b0d Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 16 2015 13:22:52 +0000 Subject: Set the csrf token when retrieving the markdown preview --- diff --git a/progit/templates/issue.html b/progit/templates/issue.html index f89b6e9..35dec2f 100644 --- a/progit/templates/issue.html +++ b/progit/templates/issue.html @@ -167,7 +167,10 @@ $(function() { $.ajax({ url: _url , type: 'POST', - data: {content: _text}, + data: { + content: _text, + csrf_token: "{{ form.csrf_token.current_token }}", + }, dataType: 'html', success: function(res) { $( "#preview" ).html(res);