[OpenLayers-Users] Problem whit "Same-origin policy"

Tim Schaub tschaub at opengeo.org
Tue Jan 20 01:26:54 EST 2009


Pablo Díaz wrote:
> Hello list,
> 
> Well, excuse my English.
> 
> I've an application with OpenLayers, Tomcat an Geoserver. 
> When I try to connect my application in tomcat with vector layers in
> Geoserver, I've no problem if geoserver runs in port 80 (the same as
> tomcat), but when I try to connect when geoserver runs in port 8080 I
> get the next exception by firebug:
> 
> Access to restricted URI denied"  code: "1012
> http://localhost/VisorOL/javascript/OpenLayers-2.7/OpenLayers.js
> Line 513
> 
> Seaching, I found that this error means that I broke the "Same-origin
> policy", but I don't know how arrange this problem.
> 
> I need geoserver runs in port 8080 not in port 80. 
> 

If you want /geoserver on port 80, see
http://geoserver.org/display/GEOSDOC/How+to+proxy+Jetty+through+Apache+on+port+80

This is useful if you use Apache (on port 80) to serve your application.

Tim

> Some idea?.
> 
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users


-- 
Tim Schaub
OpenGeo - http://opengeo.org
Expert service straight from the developers.



More information about the Users mailing list