[Users] gxp: Add New Server and Proxy

Ryan Clark ryan.clark.j at gmail.com
Sat Sep 17 06:57:45 CEST 2011


Hello -

I've begun a gxp project that I started by using ReadyGXP. As I'm going, I'm comparing to Geoexplorer that I grabbed from GitHub.

In the initial ReadyGXP project, the AddLayers plugin's window does not contain the "Add New Server" button. I got it to show up by doing two things
 - adding a proxy: "proxy/?url=" config option to the gxp.widget.Viewer in app.js
 - adding widgets/NewSourceWindow.js to builds.cfg

So now the "Add New Server" button shows up, except that when a URL is entered and the form submitted, it isn't making the GetCapabilities request through the proxy -- it is just requesting the URL directly, which means OPTIONS, and that means a failed request.

Any idea what configuration step I'm missing to get the requests to be made through the proxy?

Thanks a lot,
Ryan




More information about the Users mailing list