Может быть, использовать метод fetch:
let url = 'YOUR_URL';
let content = {YOUR_DATA};
let optionalParam = {
headers: {
"content-type":"application/json; charset=UTF-8"
},
body: content,
method: "POST"
};
fetch(URL, optionalParam)
.then(data => {return data.json()})
.then(res => {console.log(res)})
.catch(error => {console.log(error)})