set cross-origin correctly for OSM layer