<?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: Caching for vector tiles and CORS in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/caching-for-vector-tiles-and-cors/m-p/763528#M70743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is our solution: server must response with "vary: Origin". Then "Origin" and "access-control-allow-origin" matches. As result there is no CORS problem. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/467743_vary-origin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Oct 2019 08:07:24 GMT</pubDate>
    <dc:creator>deleted-user-OOe4JK-9Abnm</dc:creator>
    <dc:date>2019-10-25T08:07:24Z</dc:date>
    <item>
      <title>Caching for vector tiles and CORS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/caching-for-vector-tiles-and-cors/m-p/763527#M70742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I started with vector tiles! Vectors are fantastic, but I have got a problem with caching.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I develop on &lt;A _jive_internal="true" href="https://community.esri.com/locatlhost:3000,"&gt;http://locatlhost:3000,&lt;/A&gt; test server is &lt;A href="https://*******getaccess.no/cpt"&gt;https://*******getaccess.no/cpt &lt;/A&gt;&lt;/P&gt;&lt;P&gt;Problem: I get a CORS error since both locations share vector caching.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I open localhost with cleaned cache, everything works perfect. Then I open test server, and map is gone. I get a CORS error (see image). If I zoom in on test-server the map will come up, but just on arеas which was not cached on when I navigated on localhost, and vice versa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use 4.13 js API.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2019 13:01:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/caching-for-vector-tiles-and-cors/m-p/763527#M70742</guid>
      <dc:creator>deleted-user-OOe4JK-9Abnm</dc:creator>
      <dc:date>2019-10-22T13:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Caching for vector tiles and CORS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/caching-for-vector-tiles-and-cors/m-p/763528#M70743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is our solution: server must response with "vary: Origin". Then "Origin" and "access-control-allow-origin" matches. As result there is no CORS problem. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/467743_vary-origin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 08:07:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/caching-for-vector-tiles-and-cors/m-p/763528#M70743</guid>
      <dc:creator>deleted-user-OOe4JK-9Abnm</dc:creator>
      <dc:date>2019-10-25T08:07:24Z</dc:date>
    </item>
  </channel>
</rss>

