fix CSRF token for message preview (#77)
This commit is contained in:
parent
227087ebbc
commit
ed231f6524
|
@ -24,7 +24,10 @@
|
|||
data = {text: plainText};
|
||||
fetch('{{ url_for("api_markdown") }}', {
|
||||
method: "POST",
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'X-CSRFToken': '{{ csrf_token() }}'
|
||||
},
|
||||
body: JSON.stringify(data)
|
||||
})
|
||||
.then(response => response.text())
|
||||
|
|
Loading…
Reference in New Issue