Launchpad REST API does not support JSONP

Bug #730321 reported by Sandy Walsh
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

It would be nice to access Launchpad data from javascript in a client browser (so it can access LP installations that are behind a firewall). This can only really be done if the REST API supports JSONP (wrapping the JSON into a function call).

Tags: json jsonp
Changed in launchpad:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Soren Hansen (soren) wrote :

I would really, really like this, too.

I tried wrapping my head around how to add this functionality myself, but I'm having trouble finding my way around. Is this something that needs to be done in lazr.restful rather than Launchpad, perhaps?

Revision history for this message
Soren Hansen (soren) wrote :

My use case is completely different from that of the OP, though. I'm simply wanting to consume the API from javascript, but due to the same origin policy, this is impossible due to the lack of JSONP support.

Revision history for this message
Paul Wise (Debian) (pabs) wrote :

I think using CORS would be better than JSONP, since JSONP has some "interesting" security properties.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers