<?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 How do we secure API Key when the application is deployed in public domain for everyone's use? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-we-secure-api-key-when-the-application-is/m-p/1277155#M80818</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I would request information on how do we secure API Key. Our&amp;nbsp; app should be working on public domain, I understand we cannot set referrers in our case.&lt;/P&gt;&lt;P&gt;Any suggestions would be very helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Vara Prasad&lt;/P&gt;</description>
    <pubDate>Tue, 11 Apr 2023 04:21:45 GMT</pubDate>
    <dc:creator>Vara_PrasadM_S</dc:creator>
    <dc:date>2023-04-11T04:21:45Z</dc:date>
    <item>
      <title>How do we secure API Key when the application is deployed in public domain for everyone's use?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-we-secure-api-key-when-the-application-is/m-p/1277155#M80818</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I would request information on how do we secure API Key. Our&amp;nbsp; app should be working on public domain, I understand we cannot set referrers in our case.&lt;/P&gt;&lt;P&gt;Any suggestions would be very helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Vara Prasad&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 04:21:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-we-secure-api-key-when-the-application-is/m-p/1277155#M80818</guid>
      <dc:creator>Vara_PrasadM_S</dc:creator>
      <dc:date>2023-04-11T04:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do we secure API Key when the application is deployed in public domain for everyone's use?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-we-secure-api-key-when-the-application-is/m-p/1277333#M80830</link>
      <description>&lt;P&gt;You could setup a small proxy to handle the API key for the requests. This will hide the key (although without a referrer anyone could still access).&lt;/P&gt;&lt;P&gt;Esri does have sample code for a proxy, but the code is retired now as they recommend one of the following approaches (from esri github page for proxy) although some still rely on having a referrer:&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://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;</description>
      <pubDate>Tue, 11 Apr 2023 15:07:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-we-secure-api-key-when-the-application-is/m-p/1277333#M80830</guid>
      <dc:creator>BryanMc</dc:creator>
      <dc:date>2023-04-11T15:07:48Z</dc:date>
    </item>
  </channel>
</rss>

