<?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: ArcGIS JS Proxy in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-proxy/m-p/1367467#M83283</link>
    <description>&lt;P&gt;You could try using a RequestInterceptor to ensure that the layer uses the proxy URL:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#RequestInterceptor" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#RequestInterceptor&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jan 2024 17:13:06 GMT</pubDate>
    <dc:creator>Noah-Sager</dc:creator>
    <dc:date>2024-01-08T17:13:06Z</dc:date>
    <item>
      <title>ArcGIS JS Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-proxy/m-p/1366659#M83265</link>
      <description>&lt;P&gt;How to ensure that urlUtils is executed before loading the layer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  urlUtils.addProxyRule({
            urlPrefix: "XXXXXXX/server/rest/services",
            proxyUrl: "https://XXXXXX/proxy.ashx"
        });

        const MAP = new MapImageLayer({
            url: "https://XXXXXX/MapServer",
            title: "XXXXXX",
            spatialReference: {
                wkid: 3826
            },
            visible: false,
            listMode: "hide-children"
        });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 03:49:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-proxy/m-p/1366659#M83265</guid>
      <dc:creator>Wade</dc:creator>
      <dc:date>2024-01-05T03:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JS Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-proxy/m-p/1367467#M83283</link>
      <description>&lt;P&gt;You could try using a RequestInterceptor to ensure that the layer uses the proxy URL:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#RequestInterceptor" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#RequestInterceptor&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 17:13:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-proxy/m-p/1367467#M83283</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2024-01-08T17:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JS Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-proxy/m-p/1465050#M84586</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/169842"&gt;@Noah-Sager&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use proxy, my printing function seems to be unable to print private layers.&lt;/P&gt;&lt;P&gt;Is there a solution to this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;error:
code: 400
details: ['Error executing tool. Export Web Map Task : error …eb Map).\nFailed to execute (Export Web Map Task).']
extendedCode: -2147467261
message: "Unable to complete operation."&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 08:28:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-proxy/m-p/1465050#M84586</guid>
      <dc:creator>Wade</dc:creator>
      <dc:date>2024-05-14T08:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JS Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-proxy/m-p/1465881#M84593</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/527995"&gt;@Wade&lt;/a&gt;&amp;nbsp;- couple things to consider here.&lt;/P&gt;&lt;P&gt;1. are you sure all the relevant requests are going through the proxy?&lt;/P&gt;&lt;P&gt;2. do you have to use a proxy? we do have other workflows for security:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/secure-resources/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/secure-resources/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;3. in the webmap_as_json sent to the print service, do you see any token or anything being passed in the request?&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 14:46:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-proxy/m-p/1465881#M84593</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2024-05-14T14:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JS Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-proxy/m-p/1469630#M84604</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/169842"&gt;@Noah-Sager&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Yes, because a proxy is currently required to connect to ArcGIS Server, but printing problems may occur when using the proxy program.When using proxy, my layers are all private. In theory, I should directly bring in the proxy.config rules and log in to use the layer.&lt;/P&gt;&lt;P&gt;The current test results show that as long as proxy is used, it seems that the private layer cannot be used normally in printing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently no similar examples can be found in arcgis document,Is there a solution to this?&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 03:31:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-proxy/m-p/1469630#M84604</guid>
      <dc:creator>Wade</dc:creator>
      <dc:date>2024-05-15T03:31:10Z</dc:date>
    </item>
  </channel>
</rss>

