<?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: How to inject custom request header to export method of ArcGISDynamicMapServiceLayer service through ESRI JavaScript API(3.43)? in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-to-inject-custom-request-header-to-export/m-p/1295332#M4491</link>
    <description>&lt;P&gt;There is some reference in the documentation about an esri request wrapper that maybe can help you here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jun 2023 13:05:26 GMT</pubDate>
    <dc:creator>robertopepato_bizpoke</dc:creator>
    <dc:date>2023-06-02T13:05:26Z</dc:date>
    <item>
      <title>How to inject custom request header to export method of ArcGISDynamicMapServiceLayer service through ESRI JavaScript API(3.43)?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-to-inject-custom-request-header-to-export/m-p/1292949#M4487</link>
      <description>&lt;P&gt;I am using Esri API Version 3.43.&lt;/P&gt;&lt;P&gt;We are trying to inject custom request header to ESRI JavaScript API request from Angular application and it is successfully adding into request header but it is unable to inject request header to export method URL of DynamicMapserviceLayer&amp;nbsp;&lt;/P&gt;&lt;P&gt;For below URL we can &lt;STRONG&gt;not&lt;/STRONG&gt; able to inject custom request header&lt;/P&gt;&lt;P&gt;&lt;A target="_self"&gt;https://&amp;lt;&amp;lt;domainname&amp;gt;&amp;gt;/server/rest/services/clients/TestMap/MapServer/&lt;STRONG&gt;export&lt;/STRONG&gt;?dpi=96&amp;amp;transparent=true&amp;amp;format=jpeg&amp;amp;bbox=-82.07564496038172%2C37.51324137333766%2C-71.79745097216599%2C42.34399254779905&amp;amp;bboxSR=4326&amp;amp;imageSR=4326&amp;amp;size=1200%2C564&amp;amp;f=image&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For below URL we can able to inject custom request header&lt;/P&gt;&lt;P&gt;&lt;A target="_self"&gt;https://&amp;lt;&amp;lt;domainname&amp;gt;&amp;gt;/server/rest/services/clients/TestMap/MapServer?f=json&amp;amp;dpi=96&amp;amp;transparent=true&amp;amp;format=jpeg&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I analysis from the code export method request is not originating from Angular code but&amp;nbsp;from&amp;nbsp;&lt;STRONG&gt;ArcGISDynamicMapServiceLayer&lt;/STRONG&gt;&amp;nbsp;Esri JS API.&lt;/P&gt;&lt;P&gt;Is there any way to inject custom request header to&amp;nbsp;&lt;STRONG&gt;ArcGISDynamicMapServiceLayer&lt;/STRONG&gt;&amp;nbsp; Esri API.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any suggestion is welcome....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Harshal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 08:45:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-to-inject-custom-request-header-to-export/m-p/1292949#M4487</guid>
      <dc:creator>HarshalKale</dc:creator>
      <dc:date>2023-05-25T08:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to inject custom request header to export method of ArcGISDynamicMapServiceLayer service through ESRI JavaScript API(3.43)?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-to-inject-custom-request-header-to-export/m-p/1295332#M4491</link>
      <description>&lt;P&gt;There is some reference in the documentation about an esri request wrapper that maybe can help you here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 13:05:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-to-inject-custom-request-header-to-export/m-p/1295332#M4491</guid>
      <dc:creator>robertopepato_bizpoke</dc:creator>
      <dc:date>2023-06-02T13:05:26Z</dc:date>
    </item>
  </channel>
</rss>

