diff --git a/lib/edit/OfflineEditAdvanced.js b/lib/edit/OfflineEditAdvanced.js index 99529c2..06c17b9 100644 --- a/lib/edit/OfflineEditAdvanced.js +++ b/lib/edit/OfflineEditAdvanced.js @@ -2040,8 +2040,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() {