aboutsummaryrefslogtreecommitdiff
path: root/ext/js/comm/anki.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/comm/anki.js')
-rw-r--r--ext/js/comm/anki.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/js/comm/anki.js b/ext/js/comm/anki.js
index e8cf7afd..e615dc39 100644
--- a/ext/js/comm/anki.js
+++ b/ext/js/comm/anki.js
@@ -174,6 +174,9 @@ class AnkiConnect {
mode: 'cors',
cache: 'default',
credentials: 'omit',
+ headers: {
+ 'Content-Type': 'application/json'
+ },
redirect: 'follow',
referrerPolicy: 'no-referrer',
body: JSON.stringify({action, params, version: this._localVersion})