AnsweredAssumed Answered

addProxyRule

Question asked by roialga on Jul 21, 2015
Latest reply on Jul 21, 2015 by roialga

Hello,

i am using this code:

esri.urlUtils.addProxyRule({

                urlPrefix: "***",

                proxyUrl: "***"

                });

 

And it doesn't work, I get this error in the console:

Uncaught TypeError: Cannot read property 'addProxyRule' of undefined

 

I added the currect classes to the require part:

require([

        "esri/map", "esri/dijit/Search", "esri/layers/FeatureLayer", "esri/InfoTemplate", "dojo/domReady!","esri/layers/ArcGISDynamicMapServiceLayer", "esri/urlUtils"

      ], function (Map, Search, FeatureLayer, InfoTemplate, ArcGISDynamicMapServiceLayer, urlUtils)

 

What am I missing?

thank you.

Outcomes