Вы не можете использовать window.open для выполнения POST-запроса к бэкэнд-сервису, вы можете использовать функцию извлечения
fetch(url, {
method: "POST",
body: JSON.stringify({"reporttype" : [1,2,3,4,5]}),
headers: {"Content-Type": "application/json"}
.then(response => response.json())
.then(data => console.log(data));
Вы также можете попробовать использовать XMLHttpRequest
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (xhr.readyState === 4) {
console.log(xhr.response);
}
}
xhr.open("POST", url, true);
xhr.setRequestHeader("Content-type", "application/json");
xhr.send(JSON.stringify({"reporttype" : [1,2,3,4,5]}));