Set Content-Type
header of AnkiConnect requests to application/json
This commit is contained in:
parent
0e52a1f509
commit
faa5ed7184
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user