<?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 .net core alternative for handling proxy requests in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/net-core-alternative-for-handling-proxy-requests/m-p/1260807#M80346</link>
    <description>&lt;P&gt;I'm migrating a &amp;nbsp;web application which was designed in the .net framework GIS to .net core. and currently am on&amp;nbsp;ArcGIS Javascript API&amp;nbsp;4.23.&lt;/P&gt;&lt;P&gt;In the .net framework application, I'm using the proxy.ashx (&lt;A title="Proxy" href="https://github.com/Esri/resource-proxy/tree/master/DotNet" target="_self"&gt;https://github.com/Esri/resource-proxy/tree/master/DotNet&lt;/A&gt;), to handle the proxy requests but this proxy handler is not compatible with .net core.&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp;&lt;A title="https://www.nuget.org/packages/esriarcgis.proxy.core," href="https://www.nuget.org/packages/EsriArcgis.Proxy.Core," target="_blank" rel="noreferrer noopener"&gt;https://www.nuget.org/packages/EsriArcgis.Proxy.Core&lt;/A&gt;&amp;nbsp;but it doesn't support token authentication. I have to predefine the authentication config in the proxy.config.json file but that is not possible with our application.&lt;/P&gt;&lt;P&gt;Is there a solution for getting around this, I need to use a proxy as am not certain if the servers I am accessing will be CORS enabled.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Feb 2023 09:12:04 GMT</pubDate>
    <dc:creator>YashvitNaik</dc:creator>
    <dc:date>2023-02-23T09:12:04Z</dc:date>
    <item>
      <title>.net core alternative for handling proxy requests</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/net-core-alternative-for-handling-proxy-requests/m-p/1260807#M80346</link>
      <description>&lt;P&gt;I'm migrating a &amp;nbsp;web application which was designed in the .net framework GIS to .net core. and currently am on&amp;nbsp;ArcGIS Javascript API&amp;nbsp;4.23.&lt;/P&gt;&lt;P&gt;In the .net framework application, I'm using the proxy.ashx (&lt;A title="Proxy" href="https://github.com/Esri/resource-proxy/tree/master/DotNet" target="_self"&gt;https://github.com/Esri/resource-proxy/tree/master/DotNet&lt;/A&gt;), to handle the proxy requests but this proxy handler is not compatible with .net core.&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp;&lt;A title="https://www.nuget.org/packages/esriarcgis.proxy.core," href="https://www.nuget.org/packages/EsriArcgis.Proxy.Core," target="_blank" rel="noreferrer noopener"&gt;https://www.nuget.org/packages/EsriArcgis.Proxy.Core&lt;/A&gt;&amp;nbsp;but it doesn't support token authentication. I have to predefine the authentication config in the proxy.config.json file but that is not possible with our application.&lt;/P&gt;&lt;P&gt;Is there a solution for getting around this, I need to use a proxy as am not certain if the servers I am accessing will be CORS enabled.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 09:12:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/net-core-alternative-for-handling-proxy-requests/m-p/1260807#M80346</guid>
      <dc:creator>YashvitNaik</dc:creator>
      <dc:date>2023-02-23T09:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: .net core alternative for handling proxy requests</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/net-core-alternative-for-handling-proxy-requests/m-p/1261019#M80361</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/336136"&gt;@YashvitNaik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Esri does not provide a proxy to bypass CORS and it's not recommended to use the &lt;A href="https://github.com/Esri/resource-prox" target="_self"&gt;Esri resource proxy&lt;/A&gt;&amp;nbsp;on Github since it's no longer maintained. In the &lt;A href="https://github.com/Esri/resource-proxy#best-practices" target="_self"&gt;best practices&lt;/A&gt;, it's noted to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Enable&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://enable-cors.org/server.html" target="_blank" rel="nofollow noopener"&gt;CORS&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on the non-CORS enabled web server.&lt;/LI&gt;&lt;LI&gt;Use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://web.archive.org/web/20210506231115/https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/" target="_blank" rel="nofollow noopener"&gt;API keys&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to use services and access private content.&lt;/LI&gt;&lt;LI&gt;Configure your security settings in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://doc.arcgis.com/en/arcgis-online/administer/configure-security.htm" target="_blank" rel="nofollow noopener"&gt;ArcGIS Online&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://enterprise.arcgis.com/en/portal/latest/administer/windows/configure-security.htm" target="_blank" rel="nofollow noopener"&gt;ArcGIS Enterprise&lt;/A&gt;.&lt;/LI&gt;&lt;LI&gt;Access secure services&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://doc.arcgis.com/en/arcgis-online/reference/arcgis-server-services.htm#ESRI_SECTION1_FEB0DF92DA064B6A970DFB59A18AA4C2" target="_blank" rel="nofollow noopener"&gt;using ArcGIS Online&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to store your username/password credentials.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If a proxy is absolutely needed to get around CORS issues, you will need to create or find a third party proxy that you can use with your application and configure it as outlined here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/proxies/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/proxies/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 17:47:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/net-core-alternative-for-handling-proxy-requests/m-p/1261019#M80361</guid>
      <dc:creator>LaurenBoyd</dc:creator>
      <dc:date>2023-02-23T17:47:32Z</dc:date>
    </item>
  </channel>
</rss>

