Ajax Call löst immer xhr.send aus (options.hascontent && options.data null) Fehler [geschlossen]Jquery

JQuery-Programmierung
Anonymous
 Ajax Call löst immer xhr.send aus (options.hascontent && options.data null) Fehler [geschlossen]

Post by Anonymous »

Ich versuche, Ajax zu rufen. Post Call gibt jedoch 400 Fehler bei "xhr.send (options.hascontent && options.data null)" Zeile.

Code: Select all

$.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) {

}
});

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post