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 :