Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Allow to configure leaflet referrerPolicy #109

Open
nemesifier opened this issue Nov 16, 2022 · 0 comments
Open

[feature] Allow to configure leaflet referrerPolicy #109

nemesifier opened this issue Nov 16, 2022 · 0 comments

Comments

@nemesifier
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do (Python & Django)
Development

No branches or pull requests

1 participant