Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Cross-site xhr on api-dev?

2 views
Skip to first unread message

Axel Hecht

unread,
Nov 20, 2009, 6:14:16 AM11/20/09
to
I'm trying to use the bugzilla api right now, and I'd love to use it
with http access control, and jquery.

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');
}
});
});

Gervase Markham

unread,
Nov 20, 2009, 6:57:25 AM11/20/09
to
On 20/11/09 11:14, Axel Hecht wrote:
> I'm trying to use the bugzilla api right now, and I'd love to use it
> with http access control, and jquery.
>
> 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?

Bug.
https://bugzilla.mozilla.org/show_bug.cgi?id=530051

Gerv

Javier Maldonado

unread,
Oct 18, 2010, 5:08:34 AM10/18/10
to
El 20/11/2009 12:14, Axel Hecht escribi�:
> Hello!!
0 new messages