<?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 Requests not always using the Proxy Url in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/requests-not-always-using-the-proxy-url/m-p/648587#M60461</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a map viewer that has the following settings-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;esri.config.defaults.io.proxyUrl = "/proxy.ashx";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;esri.config.defaults.io.alwaysUseProxy = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I look at the network trace in IE, some URLs are using the proxy and some aren't.&amp;nbsp; What would be causing this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example I see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://localhost/proxy.ashx?https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/legend?f=json&amp;amp;callback=dojo.io.script.jsonp_dojoIoScript8._jsonpCallback"&gt;https://localhost/proxy.ashx?https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/legend?f=json&amp;amp;callback=dojo.io.script.jsonp_dojoIoScript8._jsonpCallback&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://localhost/proxy.ashx?https://"&gt;https://localhost/proxy.ashx?https://&lt;/A&gt;&lt;SPAN&gt;[server name]/ArcGIS/rest/services/Org/Basemap/MapServer/legend?f=json&amp;amp;callback=dojo.io.script.jsonp_dojoIoScript6._jsonpCallback&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then later I see&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.esri.com/[server"&gt;https://[server&lt;/A&gt;&lt;SPAN&gt; name]/ArcGIS/rest/services/Org/Basemap/MapServer/4/images/714F5E24&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Nov 2012 16:49:42 GMT</pubDate>
    <dc:creator>AD</dc:creator>
    <dc:date>2012-11-07T16:49:42Z</dc:date>
    <item>
      <title>Requests not always using the Proxy Url</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/requests-not-always-using-the-proxy-url/m-p/648587#M60461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a map viewer that has the following settings-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;esri.config.defaults.io.proxyUrl = "/proxy.ashx";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;esri.config.defaults.io.alwaysUseProxy = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I look at the network trace in IE, some URLs are using the proxy and some aren't.&amp;nbsp; What would be causing this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example I see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://localhost/proxy.ashx?https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/legend?f=json&amp;amp;callback=dojo.io.script.jsonp_dojoIoScript8._jsonpCallback"&gt;https://localhost/proxy.ashx?https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/legend?f=json&amp;amp;callback=dojo.io.script.jsonp_dojoIoScript8._jsonpCallback&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://localhost/proxy.ashx?https://"&gt;https://localhost/proxy.ashx?https://&lt;/A&gt;&lt;SPAN&gt;[server name]/ArcGIS/rest/services/Org/Basemap/MapServer/legend?f=json&amp;amp;callback=dojo.io.script.jsonp_dojoIoScript6._jsonpCallback&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then later I see&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.esri.com/[server"&gt;https://[server&lt;/A&gt;&lt;SPAN&gt; name]/ArcGIS/rest/services/Org/Basemap/MapServer/4/images/714F5E24&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2012 16:49:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/requests-not-always-using-the-proxy-url/m-p/648587#M60461</guid>
      <dc:creator>AD</dc:creator>
      <dc:date>2012-11-07T16:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Requests not always using the Proxy Url</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/requests-not-always-using-the-proxy-url/m-p/648588#M60462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, can't help, but I've noticed something similar today.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using this TOC &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109"&gt;http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109&lt;/A&gt;&lt;SPAN&gt; and in IE and Firefox the graphics for the legend do not go via proxy page, so miss the token, and do not appear (I've tweaked the code now to add the token) in chrome, however, the source of the image looks like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;src="data:image/png;base64,iVBORw0KG..&amp;lt;loads more like this&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and it works without the token, where as in IE it is a proper path to the image (like your example src="&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.esri.com/[server"&gt;https://[server&lt;/A&gt;&lt;SPAN style="color: #3E3E3E; font-family: Arial;"&gt; name]/ArcGIS/rest/services/Org/Basemap/MapServer/4/images/714F5E24")&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's going on here then?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2012 18:28:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/requests-not-always-using-the-proxy-url/m-p/648588#M60462</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2012-11-07T18:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Requests not always using the Proxy Url</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/requests-not-always-using-the-proxy-url/m-p/648589#M60463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;...in chrome, however, the source of the image looks like this&lt;BR /&gt;&lt;BR /&gt;src="data:image/png;base64,iVBORw0KG..&amp;lt;loads more like this&amp;gt;"&lt;BR /&gt;&lt;BR /&gt;and it works without the token, where as in IE it is a proper path to the image (like your example src="&lt;A _jive_internal="true" href="https://community.esri.com/[server"&gt;https://[server&lt;/A&gt;&lt;SPAN style="color: #3E3E3E; font-family: Arial;"&gt; name]/ArcGIS/rest/services/Org/Basemap/MapServer/4/images/714F5E24")&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;What's going on here then?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which version of IE are you using?&amp;nbsp; Since older versions of IE do not support the &lt;/SPAN&gt;&lt;A href="https://en.wikipedia.org/wiki/Data_URI_scheme"&gt;Data URI scheme&lt;/A&gt;&lt;SPAN&gt;, it may be the case that the JS API is determining the URL format based on your browser.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2012 19:55:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/requests-not-always-using-the-proxy-url/m-p/648589#M60463</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2012-11-07T19:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Requests not always using the Proxy Url</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/requests-not-always-using-the-proxy-url/m-p/648590#M60464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;IE8 &amp;amp; 9 but reading the Wiki entry (you learn something every day, thanks) even 9 seems not to fully support this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, not to hijack the thread, the real question is why do these requests not go very the proxy page and get a token added?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 08:03:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/requests-not-always-using-the-proxy-url/m-p/648590#M60464</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2012-11-08T08:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Requests not always using the Proxy Url</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/requests-not-always-using-the-proxy-url/m-p/648591#M60465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did narrow it down to the TOC and legend features.&amp;nbsp; If I commented those out, then the "invalid" URLs go away.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using IE 9 for this troubleshooting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found this thread that seems to be similar, but I don't like the answers included.&amp;nbsp; It sounds like an issue with the JS API that should be addressed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/42803-Legend-Dijit-Problem-in-Internet-Explorer-(IE)"&gt;http://forums.arcgis.com/threads/42803-Legend-Dijit-Problem-in-Internet-Explorer-(IE)&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 08:36:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/requests-not-always-using-the-proxy-url/m-p/648591#M60465</guid>
      <dc:creator>AD</dc:creator>
      <dc:date>2012-11-08T08:36:44Z</dc:date>
    </item>
  </channel>
</rss>

