AnsweredAssumed Answered

Request: Add Ability to Change Proxy Url Per-Request

Question asked by american_data on Jun 28, 2013
Latest reply on Jun 28, 2013 by american_data
We've been a customer of ESRI for several years and have grown with ArcGIS web technology as it progressed.  In the past, we used Silverlight.  And one of the best blogs about ArcGIS for Silverlight was that ability to get passed the two-request limit of browsers by using multiple subdomains:

http://blogs.esri.com/esri/arcgis/2009/12/10/using-multiple-subdomains-with-a-tiled-service-layer/

Well we surpassed Silverlight for a couple of years now but enjoyed this feature as it increased our map performance.  So we did the same thing with ArcGIS for JS by modifying wrapping the esri._getProxyUrl method.

As of 3.3, we cannot override this method as it is encapsulated -- a good thing in most ways.  Could you either re-expose this function or allow a callback similar to esri.setRequestPreCallback?

We're pretty much stuck on 3.2 until this changes.  We tried to use CORS and addProxyRule, but cookies are not sent through to those requests -- which makes sense actually.

Our only other option is to host ArcGIS for JS locally and manipulate _getProxyUrl then.  We would rather not as that is a headache to maintain.  And I do know that sometimes you patch an existing version after it is released.

Outcomes