[mapguide-users] WFS Connection from OpenLayers

Johan Van de Wauw johan.vandewauw at gmail.com
Thu Jun 27 00:44:37 PDT 2013


Just an addendum to my other post:

On Fri, Jun 14, 2013 at 2:37 PM, RDBauer <rdbauer at gmail.com> wrote:
> All,
> /Failed to load resource: Origin null is not allowed by
> Access-Control-Allow-Origin.
> http://localhost/mapguide/mapagent/mapagent.fcgi?USERNAME=Administrator&Password=admin
>
> XMLHttpRequest cannot load
> http://localhost/mapguide/mapagent/mapagent.fcgi?USERNAME=Administrator&Password=admin.
> Origin null is not allowed by Access-Control-Allow-Origin. index.html:1/
>

You must enable cross domain requests on your WFS server if your WFS
is on another server:
http://enable-cors.org/


In your case your wfs server is probably the same as your web server.
In that case, make sure that the domains match: if you want to load a
wfs service from a web page, that page must be on the same domain
(http://localhost/) in your case as your server. It is the browser
blocking the request.


More information about the mapguide-users mailing list