AnsweredAssumed Answered

Can't use the same basemap from 2 URLs in the same browser

Question asked by romain_nc on Apr 3, 2014
Hello everyone,

I got a problem with CORS I can not solve.

I have two web applications on 2 separate IIS 7 servers (each has a URL). Both applications use the widget BasemapGallery.

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.

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.

Here is an example:

1) I run a first application (hosted on a local IIS server) and ask for a basemap from arcgis online :


No problem.

2) I open a second tab with an arcgis-developpers sample ( and I ask for the same basemap.


Error, the header of the first response is retrieved from the cache and does not match. The request is blocked.

Tested Browsers: Firefox 28, Chrome 33

I hope to be clear, sorry for my broken English.

Anyone know how to fix this?

thank you,