Cabeçalho de passe em Ajax
$.ajax({
url: "/test",
headers: {"X-Test-Header": "test-value"}
});
Lokesh003
$.ajax({
url: "/test",
headers: {"X-Test-Header": "test-value"}
});
$.ajax({
type: "POST",
beforeSend: function(request) {
request.setRequestHeader("Authority", authorizationToken);
},
url: "entities",
data: "json=" + escape(JSON.stringify(createRequestObject)),
processData: false,
success: function(msg) {
$("#results").append("The result =" + StringifyPretty(msg));
}
});