Skip to content

Commit b32e3d3

Browse files
authored
Merge pull request openstreetmap#51 from Firefishy/add-referer-policy
Set referrerPolicy for tile.openstreetmap.org
2 parents 2fd191a + f05b241 commit b32e3d3

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)