pass header in ajax
$.ajax({
url: "/test",
headers: {"X-Test-Header": "test-value"}
});
pass header in ajax
$.ajax({
url: "/test",
headers: {"X-Test-Header": "test-value"}
});
jquery get request with headers
$.ajax({
url: "http://localhost/myawsomecode/",
data: { param1: 'anyvalue', param2: 'othervalue' },
type: "GET",
beforeSend: function(xhr){xhr.setRequestHeader('X-Test-Header', 'SetHereYourValueForTheHeader');},
success: function() { alert('Success!'); }
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us