AnsweredAssumed Answered

Proxy in 4.0beta1

Question asked by roland.martin_arup on Aug 5, 2015
Latest reply on Aug 12, 2015 by roland.martin_arup

Has anyone figured out how to use the proxy? Right now I've got:

 

var map,

    view;

require([

"esri/Map",

"esri/views/SceneView",

"esri/config",

"esri/layers/FeatureLayer",

"dojo/domReady!"

], function(

Map,

SceneView,

esriConfig,

ArcGISDynamicLayer,

FeatureLayer

) {

  esriConfig.request.proxyUrl = "proxy/proxy.php";

 

map = new Map({

basemap : "streets"

});

 

view = new SceneView({

container : "viewDiv",

map : map

});

 

overlay = new FeatureLayer("{...}/MapServer/0");

map.add(overlay);

});

 

... but the proxy is being bypassed. I'm guessing I need to define which URLs get proxied somewhere, and I've played a bit with esri/request, but haven't got anywhere with that either. The only thing that works is using forceProxy=true, and that sends all requests through the proxy. Any thoughts?

Outcomes