<?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: CORS errors on static.arcgis.com in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/cors-errors-on-static-arcgis-com/m-p/1044078#M3770</link>
    <description>&lt;P&gt;Assuming you're debugging application on localhost which requesting the&amp;nbsp;&lt;A href="https://static.arcgis.com/attribution/World_Imagery?f=json" target="_blank" rel="nofollow noopener noreferrer"&gt;https://static.arcgis.com/attribution/World_Imagery?f=json.&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;then you might try setup proxy first if haven't done yet&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/proxies/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/proxies/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Apr 2021 04:30:21 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-04-06T04:30:21Z</dc:date>
    <item>
      <title>CORS errors on static.arcgis.com</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/cors-errors-on-static-arcgis-com/m-p/1039370#M3755</link>
      <description>&lt;P&gt;Hi everyone.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using esri-leaflet to enable Satellite Imagery in our maps. We have noticed that the layer attributions cannot be loaded because of CORS related issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Browser Errors:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kusc3245_0-1616430535612.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9090i0138577B924D43F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kusc3245_0-1616430535612.png" alt="kusc3245_0-1616430535612.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Request/Response:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kusc3245_2-1616430578433.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9092i538F21B456DD4C86/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kusc3245_2-1616430578433.png" alt="kusc3245_2-1616430578433.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kusc3245_3-1616430616664.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9093iEE69FDC3C129115E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kusc3245_3-1616430616664.png" alt="kusc3245_3-1616430616664.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;First I thought it is an issue on our side, the I thought it is an issue on esri-leaflet, but after diggig deeper it simply seems that the "static.arcgis.com" API endpoint (in this case &lt;A href="https://static.arcgis.com/attribution/World_Imagery?f=json" target="_blank"&gt;https://static.arcgis.com/attribution/World_Imagery?f=json&lt;/A&gt;) does not send the required CORS header to function properly on websites. On the same page we also call some of our own APIs without CORS issues so the general browser setup and security policies are fine. The request headers are also the same. It's purely the arcgis server not sending the headers in the response.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a known issue? I have found some CORS related posts on this forum but nothing directly confirming this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;BR /&gt;Danel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 16:36:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/cors-errors-on-static-arcgis-com/m-p/1039370#M3755</guid>
      <dc:creator>kusc3245</dc:creator>
      <dc:date>2021-03-22T16:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: CORS errors on static.arcgis.com</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/cors-errors-on-static-arcgis-com/m-p/1043395#M3766</link>
      <description>&lt;P&gt;Daniel, could you please share the leaflet code that is causing that issue?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 16:02:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/cors-errors-on-static-arcgis-com/m-p/1043395#M3766</guid>
      <dc:creator>GavinRehkemper</dc:creator>
      <dc:date>2021-04-02T16:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: CORS errors on static.arcgis.com</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/cors-errors-on-static-arcgis-com/m-p/1044078#M3770</link>
      <description>&lt;P&gt;Assuming you're debugging application on localhost which requesting the&amp;nbsp;&lt;A href="https://static.arcgis.com/attribution/World_Imagery?f=json" target="_blank" rel="nofollow noopener noreferrer"&gt;https://static.arcgis.com/attribution/World_Imagery?f=json.&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;then you might try setup proxy first if haven't done yet&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/proxies/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/proxies/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 04:30:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/cors-errors-on-static-arcgis-com/m-p/1044078#M3770</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-04-06T04:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: CORS errors on static.arcgis.com</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/cors-errors-on-static-arcgis-com/m-p/1044090#M3771</link>
      <description>&lt;P&gt;Thanks for the hint, but unfortunately this is going a bit into a wrong direction:&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are not using the ArcGis Map component, we are using Leaflet. The link you shared is not applying for Leaflet + Esri-Leaflet.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 06:20:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/cors-errors-on-static-arcgis-com/m-p/1044090#M3771</guid>
      <dc:creator>kusc3245</dc:creator>
      <dc:date>2021-04-06T06:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: CORS errors on static.arcgis.com</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/cors-errors-on-static-arcgis-com/m-p/1044094#M3772</link>
      <description>&lt;P&gt;It seems the problem on the ArcGis/Cloudfront side was resolved since my post. I just realized that X-Cache header reported an "Error from cloudfront" and the CORS headers were missing. I wanted to prepare a sample today, but then realized that the CORS headers are now back alive and "x-cache" also rather contains "Hit from cloudfront".&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kusc3245_0-1617690087152.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/10157iA34E4DFD010A008F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kusc3245_0-1617690087152.png" alt="kusc3245_0-1617690087152.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;According to the following link the "x-cache: error on cloudfront" happens when there is some issue on the server side. I guess this issue was now resolved. Let's hope it stays like that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-custom-object-caching/" target="_blank"&gt;https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-custom-object-caching/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answers anyhow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 06:27:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/cors-errors-on-static-arcgis-com/m-p/1044094#M3772</guid>
      <dc:creator>kusc3245</dc:creator>
      <dc:date>2021-04-06T06:27:51Z</dc:date>
    </item>
  </channel>
</rss>

