django-loci icon indicating copy to clipboard operation
django-loci copied to clipboard

[feature] Allow to configure leaflet referrerPolicy

Open nemesifier opened this issue 2 years ago • 0 comments

When using tiles which have an access token tied to a particular domain or URL pattern, the leaflet library is not sending the http referer and the tile requests return 403 Forbidden if the web server is configured with strict referer policy (eg: we use "same-site" in OpenWISP deployments by default).

In order to fix this we need to find a way to set https://leafletjs.com/reference.html#tilelayer-referrerpolicy at JS level. It's possible we may have to patch https://github.com/makinacorpus/django-leaflet to get this working.

nemesifier avatar Nov 16 '22 13:11 nemesifier