[Openstack] Using Nova APIs from Javascript: possible?

Nick Lothian nick.lothian at gmail.com
Wed Apr 25 01:07:32 UTC 2012


I actually like JSONP, but supporting it would be quite a substantial
change to the APIs

Adding CORS support is a relatively small change, and probably a more
"technically correct" solution.

It does have less browser support though.
 On Apr 25, 2012 4:01 AM, "Tres Henry" <tres at treshenry.net> wrote:

> Jsonp sucks (get only) but might be the best choice. That's generally how
> AWS supports these use cases, fwiw.
>
> On Apr 24, 2012, at 7:49 AM, Sandy Walsh <sandy.walsh at rackspace.com>
> wrote:
>
> >
> >
> > On 04/24/2012 11:19 AM, Nick Lothian wrote:
> >> JSONP is great, but won't work with POST requests.
> >
> > Hmm, good point.
> >
> >> I don't quite understand what "Due to the redirect nature of the auth
> >> system" means, though.
> >>
> >> If I use a custom Webkit browser & allow cross domain XMLHttpRequests it
> >> works fine - I do a POST to /v2.0/tokens, get the token and then use
> >> that. What am I missing?
> >
> > The Auth system will give you a token and then a new "management" url
> > where the actual commands are issued (the real Nova API endpoint). These
> > are often two different systems (domains), so cross-site requests are
> > mandatory.
> >
> > -S
> >
> >
> >
> >> Nick
> >>
> >> On Tue, Apr 24, 2012 at 8:57 PM, Sandy Walsh <sandy.walsh at rackspace.com
> >> <mailto:sandy.walsh at rackspace.com>> wrote:
> >>
> >>    Due to the redirect nature of the auth system we may need JSONP
> support
> >>    for this to work.
> >>
> >>
> >>
> >>    _______________________________________________
> >>    Mailing list: https://launchpad.net/~openstack
> >>    Post to     : openstack at lists.launchpad.net
> >>    <mailto:openstack at lists.launchpad.net>
> >>    Unsubscribe : https://launchpad.net/~openstack
> >>    More help   : https://help.launchpad.net/ListHelp
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> Mailing list: https://launchpad.net/~openstack
> >> Post to     : openstack at lists.launchpad.net
> >> Unsubscribe : https://launchpad.net/~openstack
> >> More help   : https://help.launchpad.net/ListHelp
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~openstack
> > Post to     : openstack at lists.launchpad.net
> > Unsubscribe : https://launchpad.net/~openstack
> > More help   : https://help.launchpad.net/ListHelp
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120425/e30df73b/attachment.html>


More information about the Openstack mailing list