<div dir="ltr">For the REST API to be visible from browser it should either be on the same domain and port or it should implement CORS spec (Cross-site HTTP requests, <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS">https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS</a>).<div><br></div><div>If REST API implements CORS, then every HTTP request will be preceded with OPTIONS request to check the real invocation is allowed. In practice, all the API services are usually proxied from a single location, so URL naming scheme is very desirable.</div><div><br></div><div>Anton</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 12, 2014 at 3:21 PM, Darren Kenny <span dir="ltr"><<a href="mailto:Darren.Kenny@oracle.com" target="_blank">Darren.Kenny@oracle.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Chris Dent wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, 11 Nov 2014, Adam Young wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
My suggestion, from a while ago, was to have a naming scheme that deconflicts putting all of the services onto a single server, on port 443.<br>
</blockquote>
<br>
+1<br>
<br>
The current state of affairs is indeed weird.<br>
</blockquote>
<br></span>
It is, and as BUIs move more towards client's doing the access of the URLs, it<br>
is something we need to fix - since most browsers restrict cross-domain access (including different ports on the same host) for security reasons.<br>
<br>
This is the reason that the Horizon guys wrote a kind of reverse-proxy WSGI to enable demonstrations of the AngularJS work last week - so that<br>
all the REST API calls were back to the origin of Horizon itself.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Is this something that ought to be considered in the api-wg's<br>
discussions?<br>
<br>
</blockquote>
<br></span>
That would appear to fit within the aims of that working group.<br>
<br>
Thanks,<br>
<br>
Darren.<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
______________________________<u></u>_________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.<u></u>org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
</div></div></blockquote></div><br></div>