Я пытаюсь заставить Ajax звонить. Но Post Call дает 400 ошибку по адресу "xhr.send (options.hascontent && options.data null)" < /p>
Ниже приведен код для справки: < /p>
$.ajax({
type: "POST",
url: "/Security/Login",
async: false,
contentType: false,
beforesend: function (xhr) {
xhr.setRequestHeader("X-XSRF-TOKEN", $('input:hidden[name =" __RequestVerificationToken"]').val());
},
datatype: "json",
data: "{'Hi'}",
processData: false,
success: function (response) {
},
complete: function (response) {
}
});
Подробнее здесь: https://stackoverflow.com/questions/578 ... -null-erro
Мобильная версия