Hi, It seems to be a case of CORS - "Cross-Origin Resource Sharing".
As far as I have understood CORS, a webserver must explicit allow the request for his data and the browser must support CORS. On my local pc I use two webserver on different ports. I have one webserver (iis) configured to send the addional headers: Access-Control-Allow-Origin: http://localhost:7080 Access-Control-Allow-Credentials: true Access-Control-Allow-Methods: HEAD, POST, OPTIONS, GET Access-Control-Allow-Headers: content-type and because I use asp for my requests, I have to add the request method "OPTIONS" to the asp scripts properties. After the configuration I opened an OpenLayers testpage in the second webserver (apache on port 7080). The page requests for a gml file and a wfs, which resides both on the first webserver. And get the responses, which would displayed in the map. No proxy involved. The demo.opengeo.org server is configured to allow access from different domains. That's the reason, that you need no proxy. If you configure your own server to allow access for your partners, then you would not need a proxy on the client side. Good luck, Arnd Some interesting sources: [1] https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS [2] http://www.kendoui.com/blogs/teamblog/posts/11-10-03/using_cors_with_all_mod ern_browsers.aspx [3] http://arunranga.com/examples/access-control/preflightInvocation.html -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Mario Nuñez Jimenez Gesendet: Freitag, 20. Dezember 2013 09:37 An: Phil Scadden; [email protected] Betreff: Re: [OpenLayers-Users] free proxy wfs Sorry I really appreciate your help but I think I am getting lost with this discussion. The main question from my side is: Why "http://demo.opengeo.org/geoserver/wfs" works for me without any proxy from my side? I want to reproduce that if possible. I work with partners and sadly I don't know too much about their tasks, I only know that they are using a C++ standalone that includes a server and a web browser embebbed. So the idea is to be able to load in that web browser the openlayers web application locally but the OGC services are accessed remotely since they are hosted by my corporation host. So if he is not able to deploy a proxy in their embebbed server then the WFS couldn't be reached. That is the problem... _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
