From 13fad4fcbf1f7b1b1949ba5c44c2b5943edfeca4 Mon Sep 17 00:00:00 2001 From: Andy Gup Date: Wed, 11 May 2016 11:51:32 -0600 Subject: [PATCH] Adds proxyPath support to OfflineEditBasic --- lib/edit/OfflineEditBasic.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() {