I'm using $.ajax
for many requests each one has a different settings and values passed to the function.
I need to check whether these settings are merged correctly into $.ajax
settings.
var options = {
endpoint: '/path/page'
method : "POST",
mode: 'abort',
data : { value : $(this).val() },
headers : { 'X-Key' : 'value' }
}
$.ajax( $.extend(true, {
url: endpoint,
type: 'GET',
cache: true,
dataType: 'json',
contentType: 'application/x-www-form-urlencoded; charset=UTF-8',
headers : {
'X-Same-Domain':'1',
},
async: true,
data: data,
timeout: 5000,
}, options) )
How can I see in console those settings used by $.ajax request on success or failure?