I seem to be stuck at the OPTIONS request that doesn't get an
Access-Control-Allow-Origin response header. Is that a bug or a feature?
Axel
PS: Code sample:
var apibase = 'https://api-dev.bugzilla.mozilla.org/0.2/';
$(document).ready(function() {
$.ajax({url:apibase+'bug',
data: {product:"Mozilla Localizations",count:1},
success: function(data, textresult) {
console.log(data);
console.log(textresult);
},
type: 'GET',
dataType: 'json',
beforeSend: function(xhr) {
xhr.setRequestHeader('Accept', 'application/json');
xhr.setRequestHeader('Content-Type', 'application/json');
}
});
});
Bug.
https://bugzilla.mozilla.org/show_bug.cgi?id=530051
Gerv