<?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 DotNet Proxy Export Image Path with POST in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dotnet-proxy-export-image-path-with-post/m-p/317775#M29289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have an issue where a post call to a export a map&amp;nbsp;image using the DotNet proxy is returning the wrong path.&amp;nbsp; Basically the "href" property returned is using the proxy domain rather than the map service domain which results in the application not being able to find the image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The app will make the call (POST) which gets routed through the proxy like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;https://&amp;lt;appurl&amp;gt;/proxy/proxy.ashx?https://&amp;lt;mapserviceurl&amp;gt;/server/rest/services/&amp;lt;mapservicefolder&amp;gt;/&amp;lt;mapservice&amp;gt;/MapServer/export?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The image gets created on the server correctly, but the "href" property in the returned JSON output uses the domain of the application (appurl) instead of the domain of the map service (mapserviceurl)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{  "href": "https://&amp;lt;appurl&amp;gt;/server/rest/directories/arcgisoutput/&amp;lt;mapservicefolder&amp;gt;/&amp;lt;mappservice&amp;gt;_MapServer/_ags_mapd47c9ed8e69d40ba8b1b32b510c0a2e7.png",   "width": 1060,   "height": 751,   "extent": {     "xmin": -11111111.158558,     "ymin": 11111111.0506628,     "xmax": -1111111.1588419,     "ymax": 11111111.3825372,     "spatialReference": {       "wkid": 102333,       "latestWkid": 3333     }   },   "scale": 4622324.434309 }

The "href" value should be "https://&amp;lt;mapservieurl&amp;gt;/server/rest/directories/arcgisoutput/&amp;lt;mapservicefolder&amp;gt;/&amp;lt;mappservice&amp;gt;_MapServer/_ags_mapd47c9ed8e69d40ba8b1b32b510c0a2e7.png".

Is there any way to when going through the proxy to have the "href" out path respect the map service domain?&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 15:06:38 GMT</pubDate>
    <dc:creator>JoeTavano1</dc:creator>
    <dc:date>2021-12-11T15:06:38Z</dc:date>
    <item>
      <title>DotNet Proxy Export Image Path with POST</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dotnet-proxy-export-image-path-with-post/m-p/317775#M29289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have an issue where a post call to a export a map&amp;nbsp;image using the DotNet proxy is returning the wrong path.&amp;nbsp; Basically the "href" property returned is using the proxy domain rather than the map service domain which results in the application not being able to find the image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The app will make the call (POST) which gets routed through the proxy like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;https://&amp;lt;appurl&amp;gt;/proxy/proxy.ashx?https://&amp;lt;mapserviceurl&amp;gt;/server/rest/services/&amp;lt;mapservicefolder&amp;gt;/&amp;lt;mapservice&amp;gt;/MapServer/export?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The image gets created on the server correctly, but the "href" property in the returned JSON output uses the domain of the application (appurl) instead of the domain of the map service (mapserviceurl)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{  "href": "https://&amp;lt;appurl&amp;gt;/server/rest/directories/arcgisoutput/&amp;lt;mapservicefolder&amp;gt;/&amp;lt;mappservice&amp;gt;_MapServer/_ags_mapd47c9ed8e69d40ba8b1b32b510c0a2e7.png",   "width": 1060,   "height": 751,   "extent": {     "xmin": -11111111.158558,     "ymin": 11111111.0506628,     "xmax": -1111111.1588419,     "ymax": 11111111.3825372,     "spatialReference": {       "wkid": 102333,       "latestWkid": 3333     }   },   "scale": 4622324.434309 }

The "href" value should be "https://&amp;lt;mapservieurl&amp;gt;/server/rest/directories/arcgisoutput/&amp;lt;mapservicefolder&amp;gt;/&amp;lt;mappservice&amp;gt;_MapServer/_ags_mapd47c9ed8e69d40ba8b1b32b510c0a2e7.png".

Is there any way to when going through the proxy to have the "href" out path respect the map service domain?&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:06:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dotnet-proxy-export-image-path-with-post/m-p/317775#M29289</guid>
      <dc:creator>JoeTavano1</dc:creator>
      <dc:date>2021-12-11T15:06:38Z</dc:date>
    </item>
  </channel>
</rss>

