<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Request: Add Ability to Change Proxy Url Per-Request in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-add-ability-to-change-proxy-url-per/m-p/553008#M51575</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;By the way, we cannot derive from the tiled layer class either.&amp;nbsp; Because the proxy uses the question mark + url:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ex.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;http://subdomain1.mydomain.com/proxy.axd?http://internalserver/arcgis/rest/services/mylayer/mapserver&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And if you put this in your layer's url, it turns out to be something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;http://subdomain1.mydomain.com/proxy.axd?f=json&amp;amp;http://internalserver/arcgis/rest/services/mylayer/mapserver&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or worse&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;http://subdomain1.mydomain.com/proxy.axd?f=json&amp;amp;objectids=&amp;amp;abunchofothertags=&amp;amp;http://internalserver/arcgis/rest/services/mylayer/mapserver/0&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In a way I probably could piecemeal the real request from this.&amp;nbsp; But as you can see this could get really ugly and broken quickly.&amp;nbsp; All I need is a way to alter the url right before it is used.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jun 2013 20:11:53 GMT</pubDate>
    <dc:creator>AmericanData</dc:creator>
    <dc:date>2013-06-28T20:11:53Z</dc:date>
    <item>
      <title>Request: Add Ability to Change Proxy Url Per-Request</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-add-ability-to-change-proxy-url-per/m-p/553007#M51574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We've been a customer of ESRI for several years and have grown with ArcGIS web technology as it progressed.&amp;nbsp; In the past, we used Silverlight.&amp;nbsp; 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:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2009/12/10/using-multiple-subdomains-with-a-tiled-service-layer/"&gt;http://blogs.esri.com/esri/arcgis/2009/12/10/using-multiple-subdomains-with-a-tiled-service-layer/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well we surpassed Silverlight for a couple of years now but enjoyed this feature as it increased our map performance.&amp;nbsp; So we did the same thing with ArcGIS for JS by modifying wrapping the esri._getProxyUrl method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As of 3.3, we cannot override this method as it is encapsulated -- a good thing in most ways.&amp;nbsp; Could you either re-expose this function or allow a callback similar to &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jsapi/namespace_esri.html#setrequestprecallback"&gt;esri.setRequestPreCallback&lt;/A&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We're pretty much stuck on 3.2 until this changes.&amp;nbsp; We tried to use CORS and addProxyRule, but cookies are not sent through to those requests -- which makes sense actually.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our only other option is to host ArcGIS for JS locally and manipulate _getProxyUrl then.&amp;nbsp; We would rather not as that is a headache to maintain.&amp;nbsp; And I do know that sometimes you patch an existing version after it is released.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 20:05:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-add-ability-to-change-proxy-url-per/m-p/553007#M51574</guid>
      <dc:creator>AmericanData</dc:creator>
      <dc:date>2013-06-28T20:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Request: Add Ability to Change Proxy Url Per-Request</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-add-ability-to-change-proxy-url-per/m-p/553008#M51575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;By the way, we cannot derive from the tiled layer class either.&amp;nbsp; Because the proxy uses the question mark + url:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ex.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;http://subdomain1.mydomain.com/proxy.axd?http://internalserver/arcgis/rest/services/mylayer/mapserver&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And if you put this in your layer's url, it turns out to be something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;http://subdomain1.mydomain.com/proxy.axd?f=json&amp;amp;http://internalserver/arcgis/rest/services/mylayer/mapserver&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or worse&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;http://subdomain1.mydomain.com/proxy.axd?f=json&amp;amp;objectids=&amp;amp;abunchofothertags=&amp;amp;http://internalserver/arcgis/rest/services/mylayer/mapserver/0&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In a way I probably could piecemeal the real request from this.&amp;nbsp; But as you can see this could get really ugly and broken quickly.&amp;nbsp; All I need is a way to alter the url right before it is used.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 20:11:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-add-ability-to-change-proxy-url-per/m-p/553008#M51575</guid>
      <dc:creator>AmericanData</dc:creator>
      <dc:date>2013-06-28T20:11:53Z</dc:date>
    </item>
  </channel>
</rss>

