Maybe this is a dumb question but how do people manage this in production?   I looked at this web site:  <a href="http://taossa.com/index.php/2007/02/08/same-origin-policy/">http://taossa.com/index.php/2007/02/08/same-origin-policy/</a> that says that the policy looks at the port number.  Right now I have my geoserver instance on the below server at port 8080 and my webapp serving the geo web pages sits on the same host on port 8082.  I eventually want to have my geoserver on one machine and my webserver serving up the webpages on a different machine, I can&#39;t see how I can do this given this policy (I don&#39;t see the proxy script as a production solution).<br>
<br>thanks,<br><br>Alessandro Ferrucci<br><br><div class="gmail_quote">On Tue, Oct 27, 2009 at 7:36 PM, Christopher Schmidt <span dir="ltr">&lt;<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">On Tue, Oct 27, 2009 at 02:18:42PM -0400, Alessandro Ferrucci wrote:<br>

&gt; Hello,<br>
&gt; I&#39;m attempting to call getFeatureInfo from Openlayers to a geoserver<br>
&gt; instance.<br>
&gt;<br>
&gt; Rigth now all I do is construct a GetFeatureInfo URL and supply that URL to<br>
&gt; a window.open method and it works fine, below is relevant code:<br>
&gt;<br>
&gt; var wmsurl = &quot;<a href="http://dialga.npc.census.gov:8080/geoserver/wms" target="_blank">http://dialga.npc.census.gov:8080/geoserver/wms</a>&quot;;<br>
&gt;<br>
&gt; map.events.register(&#39;click&#39;, map, function (e) {<br>
&gt;     var url = wmsurl + &quot;?REQUEST=GetFeatureInfo&quot; +<br>
&gt; &quot;&amp;EXCEPTIONS=application/vnd.ogc.se_xml&quot;<br>
&gt;                             + &quot;&amp;BBOX=&quot; + map.getExtent().toBBOX()<br>
&gt;                             + &quot;&amp;X=&quot; + e.xy.x<br>
&gt;                             + &quot;&amp;Y=&quot; + e.xy.y<br>
&gt;                             + &quot;&amp;INFO_FORMAT=text/html&quot;<br>
&gt;                             + &quot;&amp;QUERY_LAYERS=cira:addresses&quot;<br>
&gt;                             + &quot;&amp;LAYERS=cira:addresses&quot;<br>
&gt;                             + &quot;&amp;FEATURE_COUNT=50&quot;<br>
&gt;                             + &quot;&amp;SRS=EPSG:900913&quot;<br>
&gt;                             + &quot;&amp;STYLES=&quot;<br>
&gt;                             + &quot;&amp;WIDTH=&quot; + map.size.w<br>
&gt;                             + &quot;&amp;HEIGHT=&quot; + map.size.h;<br>
&gt;<br>
&gt;     window.open(url, &quot;getfeatureinfo&quot;,<br>
&gt; &quot;location=0,status=0,scrollbars=1,width=600,height=150&quot; );<br>
&gt;   });<br>
&gt;<br>
&gt; But now I want to be able to use OpenLayers.loadURL method to make an AJAX<br>
&gt; request to the geoserver instance and get back the XMLHttpRequest obejct and<br>
&gt; extract the HTMl from the responseText member.<br>
&gt;<br>
&gt; this is the code:<br>
&gt;<br>
&gt; var wmsurl = &quot;<a href="http://dialga.npc.census.gov:8080/geoserver/wms" target="_blank">http://dialga.npc.census.gov:8080/geoserver/wms</a>&quot;;<br>
&gt;<br>
&gt; map.events.register(&#39;click&#39;, map, function (e) {<br>
&gt;     var url = wmsurl<br>
&gt;       + &quot;?REQUEST=GetFeatureInfo&quot;<br>
&gt;       + &quot;&amp;EXCEPTIONS=application/vnd.ogc.se_xml&quot;<br>
&gt;       + &quot;&amp;BBOX=&quot; + map.getExtent().toBBOX()<br>
&gt;       + &quot;&amp;X=&quot; + e.xy.x<br>
&gt;       + &quot;&amp;Y=&quot; + e.xy.y<br>
&gt;       + &quot;&amp;INFO_FORMAT=text/html&quot;<br>
&gt;       + &quot;&amp;QUERY_LAYERS=cira:addresses&quot;<br>
&gt;       + &quot;&amp;LAYERS=cira:addresses&quot;<br>
&gt;       + &quot;&amp;FEATURE_COUNT=50&quot;<br>
&gt;       + &quot;&amp;SRS=EPSG:900913&quot;<br>
&gt;       + &quot;&amp;STYLES=&quot;<br>
&gt;       + &quot;&amp;WIDTH=&quot; + map.size.w<br>
&gt;       + &quot;&amp;HEIGHT=&quot; + map.size.h;<br>
&gt;<br>
&gt;<br>
&gt; OpenLayers.loadURL(url,&#39;&#39;,this,receiveGetFeatureInfo,receiveGetFeatureInfo);<br>
&gt;   });<br>
&gt;<br>
&gt; function receiveGetFeatureInfo(response)<br>
&gt; {<br>
&gt;    alert(&quot;RESPONSE TEXT: &quot; + response.responseText);<br>
&gt; }<br>
&gt;<br>
&gt; responseText is ALWAYS empty... am I doing something wrong?<br>
<br>
</div></div>Violating the Same Origin Policy.<br>
<br>
<a href="http://faq.openlayers.org/proxyhost/all/" target="_blank">http://faq.openlayers.org/proxyhost/all/</a><br>
<div class="im"><br>
&gt; Thank you very much,<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Signed,<br>
&gt; Alessandro Ferrucci<br>
<br>
</div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
&gt; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
<br>
<br>
--<br>
</div></div><font color="#888888">Christopher Schmidt<br>
MetaCarta<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Signed,<br>Alessandro Ferrucci<br>