<?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 Can't use the same basemap from 2 URLs in the same browser in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-use-the-same-basemap-from-2-urls-in-the-same/m-p/762135#M70627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got a problem with CORS I can not solve.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have two web applications on 2 separate IIS 7 servers (each has a URL). Both applications use the widget BasemapGallery.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I want to run two applications in two different tabs of the same browser, the second loaded application is not able to open the arcgis online basemaps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Indeed, I feel that the browser cache retains the header of the response to the first application and in particular the "Access-Control-Allow-Origin" property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is an example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) I run a first application (hosted on a local IIS server) and ask for a basemap from arcgis online :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]32773[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;No problem.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) I open a second tab with an arcgis-developpers sample (&lt;/SPAN&gt;&lt;A href="http://developers.arcgis.com/javascript/samples/widget_basemap/" rel="nofollow"&gt;http://developers.arcgis.com/javascript/samples/widget_basemap/&lt;/A&gt;&lt;SPAN&gt;) and I ask for the same basemap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]32774[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;Error, the header of the first response is retrieved from the cache and does not match. The request is blocked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tested Browsers: Firefox 28, Chrome 33&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope to be clear, sorry for my broken English.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone know how to fix this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Romain&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2014 13:24:20 GMT</pubDate>
    <dc:creator>RomainM_</dc:creator>
    <dc:date>2014-04-03T13:24:20Z</dc:date>
    <item>
      <title>Can't use the same basemap from 2 URLs in the same browser</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-use-the-same-basemap-from-2-urls-in-the-same/m-p/762135#M70627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got a problem with CORS I can not solve.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have two web applications on 2 separate IIS 7 servers (each has a URL). Both applications use the widget BasemapGallery.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I want to run two applications in two different tabs of the same browser, the second loaded application is not able to open the arcgis online basemaps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Indeed, I feel that the browser cache retains the header of the response to the first application and in particular the "Access-Control-Allow-Origin" property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is an example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) I run a first application (hosted on a local IIS server) and ask for a basemap from arcgis online :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]32773[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;No problem.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) I open a second tab with an arcgis-developpers sample (&lt;/SPAN&gt;&lt;A href="http://developers.arcgis.com/javascript/samples/widget_basemap/" rel="nofollow"&gt;http://developers.arcgis.com/javascript/samples/widget_basemap/&lt;/A&gt;&lt;SPAN&gt;) and I ask for the same basemap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]32774[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;Error, the header of the first response is retrieved from the cache and does not match. The request is blocked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tested Browsers: Firefox 28, Chrome 33&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope to be clear, sorry for my broken English.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone know how to fix this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Romain&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 13:24:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-use-the-same-basemap-from-2-urls-in-the-same/m-p/762135#M70627</guid>
      <dc:creator>RomainM_</dc:creator>
      <dc:date>2014-04-03T13:24:20Z</dc:date>
    </item>
  </channel>
</rss>

