Esri / offline-editor-js

ArcGIS JavaScript library for handling offline editing and tiling.
http://esri.github.io/offline-editor-js/demo/
Apache License 2.0
159 stars 142 forks source link

proxyPath not respected in OfflineEditAdvanced #461

Closed hoesli closed 8 years ago

hoesli commented 8 years ago

In OfflineEditAdvanced only credentials are used for requests. Setting the proxyPath has no effect.

Line 2058 should be something like that:

var url = this.proxyPath ? this.proxyPath + "?" + layer.url : layer.url;

var req = new XMLHttpRequest();
req.open("POST", url + "/applyEdits", true);
andygup commented 8 years ago

Sure enough, good catch. Looks like all references to proxyPath got accidentally removed at some point. It was easy to overlook since almost everything we use is CORS-enabled.

I'll take a look thru the entire OfflineEditAdvanced library to make sure no other references are missing then push up a fix.

andygup commented 8 years ago

Related note - same problem in OfflineEditBasic.