diff --git a/lib/edit/OfflineEditBasic.js b/lib/edit/OfflineEditBasic.js index b264dc2..a331cac 100644 --- a/lib/edit/OfflineEditBasic.js +++ b/lib/edit/OfflineEditBasic.js @@ -947,8 +947,11 @@ define([ } } + // Respect the proxyPath if one has been set (Added at v3.2.0) + var url = this.proxyPath ? this.proxyPath + "?" + layer.url : layer.url; + var req = new XMLHttpRequest(); - req.open("POST", layer.url + "/applyEdits", true); + req.open("POST", url + "/applyEdits", true); req.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); req.onload = function() {