<?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: Javascript CORS in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-cors/m-p/756091#M69918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/guide/proxies/" title="https://developers.arcgis.com/javascript/latest/guide/proxies/"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;Requests will always be made with the assumption that CORS is supported on the server. If your server doesn't yet support CORS, the recommendation is to enable a proxy rule.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/guide/proxies/" title="https://developers.arcgis.com/javascript/latest/guide/proxies/"&gt;Proxy pages with the API | ArcGIS API for JavaScript 4.1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2020 17:33:17 GMT</pubDate>
    <dc:creator>VictorCoelho</dc:creator>
    <dc:date>2020-04-14T17:33:17Z</dc:date>
    <item>
      <title>Javascript CORS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-cors/m-p/756090#M69917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try to be quick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an ASP.Net application deployed on IIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This application use ESRI Javascript 4.14 API to access to a feature layer in ArcGIS Portal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, so good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In all browsers (dev machines, integration machines, developers machines...), it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in one machine, we have CORS error. when I try to debug my Javascript, in the console, I can see following message (translated from french error message) :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Blocking of a multi-origin request (Cross-Origin Request): the "Same Origin" policy does not allow consulting the remote resource located on &lt;EM&gt;URLOfMyFeatureServer/FeatureServer/0&lt;/EM&gt;.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Reason: CORS request failed.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has any one ever encountered this problem ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 16:23:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-cors/m-p/756090#M69917</guid>
      <dc:creator>HamzaBoudemia</dc:creator>
      <dc:date>2020-04-14T16:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript CORS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-cors/m-p/756091#M69918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/guide/proxies/" title="https://developers.arcgis.com/javascript/latest/guide/proxies/"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;Requests will always be made with the assumption that CORS is supported on the server. If your server doesn't yet support CORS, the recommendation is to enable a proxy rule.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/guide/proxies/" title="https://developers.arcgis.com/javascript/latest/guide/proxies/"&gt;Proxy pages with the API | ArcGIS API for JavaScript 4.1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 17:33:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-cors/m-p/756091#M69918</guid>
      <dc:creator>VictorCoelho</dc:creator>
      <dc:date>2020-04-14T17:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript CORS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-cors/m-p/756092#M69919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option is to&amp;nbsp;try the trustedServers property:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/488647_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request"&gt;esriConfig.request.trustedServers - API Reference&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 18:22:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-cors/m-p/756092#M69919</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2020-04-14T18:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript CORS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-cors/m-p/756093#M69920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the answer. I think it will be more convenient If this solution works. I will try it today.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 19:21:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-cors/m-p/756093#M69920</guid>
      <dc:creator>HamzaBoudemia</dc:creator>
      <dc:date>2020-04-14T19:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript CORS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-cors/m-p/756094#M69921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; margin: 20px 0px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;One more question : can I reproduce this behavior on my machine ? (CORS ERROR).&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;Thanks in advance&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 14px; margin: 20px 0px 0px;"&gt;&lt;DIV class="" data-comment-id="922217" style="color: #8b8b8b; border: none; font-weight: inherit; font-size: 0.8571rem;"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 19:47:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-cors/m-p/756094#M69921</guid>
      <dc:creator>HamzaBoudemia</dc:creator>
      <dc:date>2020-04-14T19:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript CORS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-cors/m-p/756095#M69922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me which server should support CORS ? IIS server (hosting the ASP.Net application) or ArcGIS Portal Server (hosting the layers) ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2020 07:16:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-cors/m-p/756095#M69922</guid>
      <dc:creator>HamzaBoudemia</dc:creator>
      <dc:date>2020-04-15T07:16:57Z</dc:date>
    </item>
  </channel>
</rss>

