AnsweredAssumed Answered

Setting proxy server on Minimalist JS App?

Question asked by azendel on Mar 10, 2017
Latest reply on Mar 22, 2017 by azendel

We've downloaded the "Minimalist app" and are customizing it.  We'd like to include map tiles served by sister organization's on-premises ArcGIS Server.  But it's on a completely different domain than the "Minimalist" app, necessitating the use of a proxy URL.  We've successfully configured the proxy in a different project with code like

// Optional array of proxy rules
PROXY_RULES: [
   {
      urlPrefix: "http://www.our.org/arcgis/rest/services",
      proxyUrl: "http://www.our.org/proxy/proxy.ashx"
   }
],

But the proxy setting for the minimalist app only has one line to specify the proxy, unless I'm missing something:

"proxyurl": "http://www.our.org/proxy/proxy.ashx",

When I attempt to view the map outside of our domain, I get prompted to log in.  That indicates that the proxy is not configured correctly.

 

Suggestions?

 

Thanks,

 

Alex

Outcomes