From 1291c932b0a42d0ba2cbbebbe83e4b50d59f46b2 Mon Sep 17 00:00:00 2001 From: Andy Gup Date: Wed, 11 May 2016 11:50:55 -0600 Subject: [PATCH] Closes #461 --- lib/edit/OfflineEditAdvanced.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() {