//   Here&#39;s is how I did this. <br><br>// You need to use the openlayers proxy:<br><br>     OpenLayers.ProxyHost=&quot;proxy.cgi?url=&quot;;<br><br>// WFS layer points to geoserver or your host<br><br>            state_layer = new OpenLayers.Layer.WFS( &quot;States WFS&quot;,<br>
                  &quot;<a href="http://yourhost:8080/geoserver/wfs">http://yourhost:8080/geoserver/wfs</a>&quot;,<br>                    { typename: &#39;topp:states&#39;} );<br><br>===============<br><br>I&#39;m using rails, so I create a sort of fake proxy in config/routes.rb<br>
<br> map.connect &#39;/proxy.cgi&#39;,<br>    :controller =&gt; &#39;wfs&#39;,<br>    :action =&gt; &#39;myproxy&#39;<br><br>Then inside the myproxy() action:<br><br>if url =~ /geoserver/<br>     # geo server WFS data<br>
     uri = URI.parse(url)<br>     resp = Net::HTTP.get_response(uri)<br>     send_data(resp.body, :type =&gt; &#39;text/xml&#39;)<br> end<br>