<div class="gmail_extra">Nick,</div><div class="gmail_extra"><br></div><div class="gmail_extra">I know you said 'serverless clients' but you have to be serving the js from somewhere right?</div><div class="gmail_extra">
<br></div><div class="gmail_extra">If you are using nginx it can be as simple as:</div><div class="gmail_extra"><br></div><div class="gmail_extra">location /nova/ {</div><div class="gmail_extra">   proxy_pass: <a href="http://nova-api.trystack.org">http://nova-api.trystack.org</a>;</div>
<div class="gmail_extra">}</div><div class="gmail_extra"><br></div><div class="gmail_extra">then you can POST to yourserver/nova/v.02/.  from the browser</div><div class="gmail_extra"><br></div><div class="gmail_extra">etc.</div>
<div class="gmail_extra">(it's just about as simple on apache but you'd have to look it up)</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">But then i guess this won't work for you if you are writing some distributable component/plugin/library.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">(sorry if you've already dismissed this option but i thought it worth a shot since it has worked flawlessly for me in the past)</div><div class="gmail_extra">
<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 24, 2012 at 9:49 AM, Sandy Walsh <span dir="ltr"><<a href="mailto:sandy.walsh@rackspace.com" target="_blank">sandy.walsh@rackspace.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
<br>
On 04/24/2012 11:19 AM, Nick Lothian wrote:<br>
> JSONP is great, but won't work with POST requests.<br>
<br>
</div>Hmm, good point.<br>
<div class="im"><br>
> I don't quite understand what "Due to the redirect nature of the auth<br>
> system" means, though.<br>
><br>
> If I use a custom Webkit browser & allow cross domain XMLHttpRequests it<br>
> works fine - I do a POST to /v2.0/tokens, get the token and then use<br>
> that. What am I missing?<br>
<br>
</div>The Auth system will give you a token and then a new "management" url<br>
where the actual commands are issued (the real Nova API endpoint). These<br>
are often two different systems (domains), so cross-site requests are<br>
mandatory.<br>
<br>
-S<br>
<div class="im"><br>
<br>
<br>
> Nick<br>
><br>
> On Tue, Apr 24, 2012 at 8:57 PM, Sandy Walsh <<a href="mailto:sandy.walsh@rackspace.com">sandy.walsh@rackspace.com</a><br>
</div><div class="im">> <mailto:<a href="mailto:sandy.walsh@rackspace.com">sandy.walsh@rackspace.com</a>>> wrote:<br>
><br>
>     Due to the redirect nature of the auth system we may need JSONP support<br>
>     for this to work.<br>
><br>
><br>
><br>
>     _______________________________________________<br>
>     Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
>     Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
</div>>     <mailto:<a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>><br>
<div class="HOEnZb"><div class="h5">>     Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
>     More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
> Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
> Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
> More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Cheers,<div><br></div><div>Joel</div><br>
</div>