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

Send Referer header for map tile requests #22927

Open
Valodim opened this issue Jul 24, 2022 · 1 comment
Open

Send Referer header for map tile requests #22927

Valodim opened this issue Jul 24, 2022 · 1 comment
Labels
A-Location-Sharing O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Tolerable Low/no impact on users T-Enhancement Z-Labs

Comments

@Valodim
Copy link

Valodim commented Jul 24, 2022

Hey folks,

stellar work so far, love to see the matrix ecosystem grow and grow 👍

I have a feature requests wrt the new location features:

What would you like to do?

Use a custom tile server on a custom instance of Element. This can be done, but Element doesn't include Referer information in requests it performs against the tile server. It would be good to include the Referer header in those requests, or at least an option for it.

Why would you like to do it?

A typical custom tile server is just a cache for an upstream openstreemap tile server. In the simplest case, it just caches HTTP responses from there. In this case, it has to adhere to the upstream policies, one of which is to include Referer info for all requests:

https://github.com/openstreetmap/owg-website/blob/90513ab366d46ab499ea8b1abbe6c001261b3c02/policies/tiles.md

On top of that, I imagine most folks don't want to run an open caching service. The ability to filter requests by an allowlist of referer domains would be helpful in that regard as well.

@MadLittleMods MadLittleMods changed the title Send referer header for map tile requests Send Referer header for map tile requests Jul 25, 2022
@MadLittleMods MadLittleMods added A-Location-Sharing S-Tolerable Low/no impact on users O-Uncommon Most users are unlikely to come across this or unexpected workflow labels Jul 25, 2022
@t3chguy
Copy link
Member

t3chguy commented Jul 26, 2022

Web Apps cannot override the Referer header as per https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Location-Sharing O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Tolerable Low/no impact on users T-Enhancement Z-Labs
Projects
None yet
Development

No branches or pull requests

3 participants