<br><br><div><span class="gmail_quote">On 7/13/07, <b class="gmail_sendername">P T Withington</b> &lt;<a href="mailto:ptw@openlaszlo.org">ptw@openlaszlo.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
So the src attribute would still be the real source of the data?<br><br>Presumably the proxy needs to vet the requestee and the source being<br>requested so that it does not act as an &#39;open relay&#39;?</blockquote><div>
<br><br>There&#39;s no really good way I can think of to do that, given that the app<br>source is readable to a pretty casual observer. Put the proxy should probably<br>have a default of &quot;closed&quot;, and only speak to specific 3rd party hosts as configured in a config file.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I wonder if we should have a global proxy config file like [proxy.pac]<br>(<a href="http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html">
http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html</a>)<br><br>On 2007-07-13, at 12:25 EDT, Henry Minsky wrote:<br><br>&gt; I recently ran into an issue when trying to deploy a SOLO app to a<br>&gt; host
<br>&gt; which is not running<br>&gt; the LPS server. I need to access 3rd party data and images from a<br>&gt; server,<br>&gt; and due to security<br>&gt; policy in Flash and DHTML runtimes,&nbsp;&nbsp;need a proxy server living on
<br>&gt; the same<br>&gt; host that my app is served from.<br>&gt;<br>&gt; There have been a couple of different PHP HTTP proxies written, and<br>&gt; I&#39;d like<br>&gt; to add support to our<br>&gt; data API to specify an explicit URL for the proxy server. Currently
<br>&gt; it is<br>&gt; implicitly generated using<br>&gt; LzBrowser.getBaseURL( ) as the url.<br>&gt;<br>&gt; I propose adding a &quot;proxyhost&quot; attribute to dataset, which<br>&gt; specifies the<br>&gt; host to forward requests to.
<br>&gt; HTTP requests would still be formatted using the existing LZX proxy<br>&gt; protocol, so the server to<br>&gt; which you point would be expected to look like an LZX server for<br>&gt; purposes of<br>&gt; requests which are marked
<br>&gt; as lzt=data or lzt=media. However, it would not be necessary for<br>&gt; the proxy<br>&gt; server to support all the optional args<br>&gt; such as cache control or header forwarding.<br>&gt;<br>&gt; The syntax would look like this
<br>&gt;<br>&gt; &lt;dataset name=&quot;mydata&quot; proxyhost=&quot;myproxy.php&quot;/&gt; for a relative url or<br>&gt;<br>&gt; &lt;dataset name=&quot;mydata&quot; proxyhost=&quot;/myproxy.php&quot;/&gt; relative to host
<br>&gt; server<br>&gt; root directory<br>&gt;<br>&gt; &lt;dataset name=&quot;mydata&quot; proxyhost=&quot;<a href="http://myhost.com/proxy/">http://myhost.com/proxy/</a><br>&gt; myproxy.php&quot;/&gt;<br>&gt; for an absolute url (needs to be
<br>&gt; on same host as app served from for default security policy of most<br>&gt; browsers)<br>&gt;<br>&gt; Another option would be some global canvas setting<br>&gt;<br>&gt; &lt;atttribute name=&quot;proxyhost&quot; value=&quot;/myproxy.php&quot;/&gt;
<br>&gt;<br>&gt; or<br>&gt;<br>&gt; &lt;canvas proxyhost=&quot;/myproxy.php&quot;&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Henry Minsky<br>&gt; Software Architect
<br>&gt; <a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com
</a><br><br>