Launchpad REST API does not support JSONP
Bug #730321 reported by
Sandy Walsh
on 2011-03-06
This bug affects 3 people
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Launchpad itself |
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).
Robert Collins (lifeless)
on 2011-03-06
| Changed in launchpad: | |
| status: | New → Triaged |
| importance: | Undecided → Low |
| Soren Hansen (soren) wrote : | #1 |
| Soren Hansen (soren) wrote : | #2 |
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.
| Paul Wise (Debian) (pabs) wrote : | #3 |
I think using CORS would be better than JSONP, since JSONP has some "interesting" security properties.
To post a comment you must log in.

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?