<?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: Cannot fetch a specific web tile image because of cors policy in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-fetch-a-specific-web-tile-image-because-of/m-p/1195846#M78063</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/588688"&gt;@MatthewUy&lt;/a&gt;&amp;nbsp;I'm having this issue too. exactly the same. Any solution?&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2022 10:59:16 GMT</pubDate>
    <dc:creator>orahlagi</dc:creator>
    <dc:date>2022-07-26T10:59:16Z</dc:date>
    <item>
      <title>Cannot fetch a specific web tile image because of cors policy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-fetch-a-specific-web-tile-image-because-of/m-p/1176196#M77421</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have an app that we migrated from arcgis 3.x to arcgis 4.21. The problem now is when using a web tile from a specific domain, for example: (&lt;A href="https://tileserver.4umaps.com/5/9/11.png" target="_blank" rel="noopener"&gt;https://tileserver.4umaps.com/5/9/11.png&lt;/A&gt;) returns a cors policy error. Using the 3.x, it's working but using the newer version, it doesn't work. I tried using different techniques, i.e: adding the url to esriConfig.request.trustedServers, adding an interceptor to the request by adding a "Access-Control-Allow-Origin":"*", still it does not work. All other web tiles work except for this one.&lt;/P&gt;&lt;P&gt;I can show you an example of what the error looks like.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MatthewUy_0-1653168778999.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41882i89C0AF3FC94C208F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MatthewUy_0-1653168778999.png" alt="MatthewUy_0-1653168778999.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any help would be really appreciated.&lt;/P&gt;&lt;P&gt;note: I haven't used a proxy yet because this was working before without proxy, I don't want to use it unless there is no other way.&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2022 00:39:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-fetch-a-specific-web-tile-image-because-of/m-p/1176196#M77421</guid>
      <dc:creator>MatthewUy</dc:creator>
      <dc:date>2022-05-22T00:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot fetch a specific web tile image because of cors policy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-fetch-a-specific-web-tile-image-because-of/m-p/1195846#M78063</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/588688"&gt;@MatthewUy&lt;/a&gt;&amp;nbsp;I'm having this issue too. exactly the same. Any solution?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 10:59:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-fetch-a-specific-web-tile-image-because-of/m-p/1195846#M78063</guid>
      <dc:creator>orahlagi</dc:creator>
      <dc:date>2022-07-26T10:59:16Z</dc:date>
    </item>
  </channel>
</rss>

