[OpenLayers-Users] OpenLayers Proxy Issue
Jerome A. Wendell
jawendell at suddenlink.net
Thu Nov 7 09:17:19 PST 2013
I am using OpenLayers 2.12, GeoServer 2.4.0, GeoExt 1.1 and Ext JS 3.4.1. I
installed the MapFish printing servlet for printing. I am trying to print
vector data, so the information sent in the request is too long to use GET.
I have setup the printing to send a POST request, but I get the following
error:
XMLHttpRequest cannot load
http://www.mydomain.com:8080/print/pdf/create.json. Origin
http://www.mydomain.com is not allowed by Access-Control-Allow-Origin.
I am using a ProxyHost as described at the link below:
http://trac.osgeo.org/openlayers/browser/trunk/openlayers/examples/proxy.cgi
I don't understand why the proxy does not allow the request to go through.
Both www.mydomain.com and www.mydomain.com:8080 are in the allowedHosts
section of the proxy file. Has anyone else experienced this problem, and
how did you fix it?
Thanks,
Jerome Wendell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20131107/ed54b9ba/attachment.html>
More information about the Users
mailing list