see http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost


From: Toan Nguyen 
Sent: Saturday, March 05, 2011 4:13 AM
To: [email protected] 
Subject: [Dev] GeoExt - Print function


Hi all, 


I am using GeoExt to build my application.


I see this example: http://api.geoext.org/1.0/examples/print-form.html to 
create print map function. Your map run at 
http://api.geoext.org/1.0/examples/print-form.html, and printURL at 
http://demo.opengeo.org/geoserver/pdf/create.json.


My appliction run at: http://localhost/aic40/frontend_dev.php and printURl is 
http://localhost:8080/geoserver/pdf/create.json. When I click print, it don't 
run and say: "XMLHttpRequest cannot load 
http://localhost:8080/geoserver/pdf/create.json. Origin http://localhost is not 
allowed by Access-Control-Allow-Origin."


How to config apache server or tomcat server for print?


Thank you very much.


-- 
Nguyễn Đình Toán




--------------------------------------------------------------------------------


_______________________________________________
Dev mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/dev
_______________________________________________
Dev mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/dev

Reply via email to