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

Possible policy issue with OSM tiles #12438

Closed
nijel opened this issue Aug 3, 2016 · 1 comment
Closed

Possible policy issue with OSM tiles #12438

nijel opened this issue Aug 3, 2016 · 1 comment
Assignees
Labels
Bug A problem or regression with an existing feature
Milestone

Comments

@nijel
Copy link
Contributor

nijel commented Aug 3, 2016

Note: The below apply if I understood the policy correctly.

According to https://wiki.openstreetmap.org/wiki/Tile_usage_policy

Technical Usage Requirements:

" If known, a valid HTTP Referer."

PMA strip the Referrer header via CSP policy (To Avoid Referrer Leaks)

fix:
while it's better from user/security perspective to not leak REFERRER at all, it appears that it might be against the rules?
it's possible to use referrerpolicy attribute to allow Referrer header to be sent for specific IMG tag by using referrerpolicy attribute:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-referrerpolicy
# Note # using "origin" as value will leak only the origin without the path (better) and it's a "valid HTTP Referer."

@nijel nijel added the Bug A problem or regression with an existing feature label Aug 3, 2016
@ibennetch ibennetch added this to the 4.7.0 milestone Dec 14, 2016
@nijel nijel self-assigned this Feb 13, 2017
@nijel
Copy link
Contributor Author

nijel commented Feb 13, 2017

As the OpenLayers library we use puts effort in providing valid Origin in the responses, I assume this is as good as providing Referrer. At least it provides same information.

@nijel nijel closed this as completed Feb 13, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A problem or regression with an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants