Guten Tag Vivek Chandra,
am Mittwoch, 1. August 2012 um 09:09 schrieben Sie:
> I dint follow this - "The interesting part is the domain from which your browser gets the
> HTML whith your JavaScript embedded" what do you mean by that?
Which URL are you typing into your browser to request your HTML page?
It surely is another than where you Bugzilla is hosted and that's the
problem: same origin policy. You can't simply speak to your Bugzilla
server from JavaScript of another domain. And I suspect both of your
errors, 403 and the other one, are caused by same origin policy.
> You mean to say, i need an intermediate server( in the same domain
> as of bugzilla server)
No, in the same domain as your HTML or else your JavaScript wouldn't
be able to talk to your intermediate server, too, just like it can't
communicate with Bugzilla.
> Why am i getting the 403 forbidden error when i can access the
> script?
I suspect same origin policy.
> is there any error in the way i'm accessing the server? in the way
> i'm sending the request?
You could test that with a local copy of Bugzilla and your HTML page,
in this case same-origin wouldn't be a problem and you can implement
the proper communication with Bugzilla itself. Afterwards you can
think of solutions to the same origin policy, but once again, I don't
think that JSONP directly to your Bugzilla server will work. But I
didn't use JSONP yet, I may be wrong of course.