<?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.interceptors mapimagelayer working in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-interceptors-mapimagelayer-working/m-p/546034#M50867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Hi Nathan, looks like we have this fixed for the upcoming 4.10 release, due out in mid-December. The "headers" will now be honored when the value type is "image".&amp;nbsp;&lt;/SPAN&gt;Hope this helps.&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;-Noah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Dec 2018 15:51:02 GMT</pubDate>
    <dc:creator>Noah-Sager</dc:creator>
    <dc:date>2018-12-10T15:51:02Z</dc:date>
    <item>
      <title>request.interceptors mapimagelayer working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-interceptors-mapimagelayer-working/m-p/546032#M50865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;The request headers aren't being sent on MapImageLayers.&amp;nbsp; but works with FeatureLayers
&lt;PRE class="lia-code-sample line-numbers language-none"&gt;token = 'sometoken';
api = 'myproxyserver';
esriConfig.request.interceptors.push({
&amp;nbsp; urls: [`https://${api}v1/GIS/proxy`],
&amp;nbsp; before: (params) =&amp;gt; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; params.requestOptions.headers = {'Authorization': 'Bearer ' + token};
&amp;nbsp; },
&amp;nbsp; headers: {'Authorization': 'Bearer ' + token}
});&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;looks like it's not being sent with the fetchImage&amp;nbsp;function within MapImageLayer.js ...&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:36:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-interceptors-mapimagelayer-working/m-p/546032#M50865</guid>
      <dc:creator>NathanRees</dc:creator>
      <dc:date>2021-12-12T16:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: request.interceptors mapimagelayer working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-interceptors-mapimagelayer-working/m-p/546033#M50866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I think this is&amp;nbsp;related to the responseType of the esriRequest:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8; border: 0px; font-weight: 300;"&gt;When this value is&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="color: #595959; background-color: #f8f8f8; border: 1px solid #efefef; font-weight: 300; font-size: 0.875em;"&gt;image&lt;/CODE&gt;&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8; border: 0px; font-weight: 300;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;the&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="color: #595959; background-color: #f8f8f8; border: 1px solid #efefef; font-weight: 300; font-size: 0.875em;"&gt;headers&lt;/CODE&gt;&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8; border: 0px; font-weight: 300;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="color: #595959; background-color: #f8f8f8; border: 1px solid #efefef; font-weight: 300; font-size: 0.875em;"&gt;timeout&lt;/CODE&gt;&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8; border: 0px; font-weight: 300;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;options are ignored.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;esriRequest -&amp;nbsp;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; border: 0px; font-weight: 300;"&gt;RequestOptions -&amp;nbsp;&lt;SPAN style="border: 0px;"&gt;responseType&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;A href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2Flatest%2Fapi-reference%2Fesri-request.html%23RequestOptions" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;request | API Reference | ArcGIS API for JavaScript 4.9&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;If this is the case, we will consider making an enhancement at a future release.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2018 20:41:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-interceptors-mapimagelayer-working/m-p/546033#M50866</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2018-10-04T20:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: request.interceptors mapimagelayer working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-interceptors-mapimagelayer-working/m-p/546034#M50867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Hi Nathan, looks like we have this fixed for the upcoming 4.10 release, due out in mid-December. The "headers" will now be honored when the value type is "image".&amp;nbsp;&lt;/SPAN&gt;Hope this helps.&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;-Noah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2018 15:51:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-interceptors-mapimagelayer-working/m-p/546034#M50867</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2018-12-10T15:51:02Z</dc:date>
    </item>
  </channel>
</rss>

