Select to view content in your preferred language

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

1016
0
04-03-2014 06:24 AM
RomainM_
New Contributor
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 :

[ATTACH=CONFIG]32773[/ATTACH]

No problem.

2) I open a second tab with an arcgis-developpers sample (http://developers.arcgis.com/javascript/samples/widget_basemap/) and I ask for the same basemap.

[ATTACH=CONFIG]32774[/ATTACH]

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,
Romain
0 Kudos
0 Replies