Skip to content

Commit f05b241

Browse files
committed
Set referrerPolicy for tile.openstreetmap.org
1 parent 2fd191a commit f05b241

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

leaflet-osm.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ L.OSM.TileLayer = L.TileLayer.extend({
1515
L.OSM.Mapnik = L.OSM.TileLayer.extend({
1616
options: {
1717
url: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
18-
maxZoom: 19
18+
maxZoom: 19,
19+
referrerPolicy: 'strict-origin-when-cross-origin'
1920
}
2021
});
2122

0 commit comments

Comments
 (0)