openlayers / ol2

OpenLayers v2 - deprecated!
Other
1.48k stars 771 forks source link

OpenStreetMap newly redirecting tile URLs. Problem on safari #1524

Open harry-wood opened 6 years ago

harry-wood commented 6 years ago

I saw some maps break when OpenStreetMap recently started redirecting http requests to httpS on the main "OpenStreetMap Standard" tile server. Safari started showing a "Cross-origin redirection" error (but no errors on Chrome & Firefox). This one on the OpenLayers2 website for example, is currently showing pink tiles in Safari.

I noticed that maps embedding this particular URL started hitting the problem: <script src="http://www.openlayers.org/api/OpenLayers.js"></script>

...but with this URL, somehow the problem is fixed (is this a later version than the above?) <script src="https://cdnjs.cloudflare.com/ajax/libs/openlayers/2.11/lib/OpenLayers.js"></script>

Strange that it fixes it, because it still seems to request the 'http' redirecting URLS.

dcleao commented 4 years ago

Interestingly, it looks like the former is of a more recent version, VERSION_NUMBER:"Release 2.13.1". This looks like a Safari bug (possibly a reincarnation of https://bugs.webkit.org/show_bug.cgi?id=57600). See also the workaround in https://github.com/eclipse/sumo/issues/3991.