hello,
I am trying to use API so I tested it with Postman and it did work but when I use Mozilla Firefox it answers with status ok 200 but without any response.
please, can anyone help me?
this my JavaScript code:
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost:8080/rest/api/2/issuetype/10006",
"method": "GET",
"headers": {
"cache-control": "no-cache",
"postman-token": "05769be8-57c8-6710-91ad-eff30eaa2ab4"
},
"data": "{ \"username\": \"admin\", \"password\": \"admin\" }"
}
jQuery.ajax(settings).error(function (response) {
console.log('++++++++++++++++++++++++This is it :'+response);
});
error function work and the response is always empty.
You might need to look into adding Accept and Content-Type headers too.
Both should be "application/json"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.