Restrictive referrer-policy prevents OpenStreetMap from working correctly
#4245
Unanswered
RickyRomero
asked this question in
Bugs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Lychee version
v7.5.3
Did you check the latest Lychee version?
Yes, I did
Which PHP version are you using?
PHP 8.5
Detailed description of the problem
The
config/secure-headers.phpconfig file contains a default setting for thereferrer-policyheader (no-referrer) that causes OpenStreetMap to watermark map tiles with the following message:This is OSM's policy on blocking tile loading. I see that the
referrer-policyheader isn't configurable from within Lychee's web interface, and I can't change it from an environment variable either. Is the intent that I override this entire file in mydocker composeconfig?Ideally, this bug is resolved by either:
strict-origin-when-cross-originso that maps work, orreferrer-policyheader to enable maps(Extra Credit: Remove Wikimedia from the supported map providers; they no longer allow third-party embedding.)
Lychee/config/secure-headers.php
Lines 82 to 90 in 9ad0993
Steps to reproduce the issue
No response
Diagnostics [REQUIRED]
Browser & System [REQUIRED]
Browser: Any
Client: macOS
Server: Debian, with Lychee running in Docker
Please confirm (incomplete submissions will not be addressed)
Beta Was this translation helpful? Give feedback.
All reactions