Fix shared run map tile referrer policy
This commit is contained in:
+2
-1
@@ -93,7 +93,8 @@ def create_app(config=None):
|
||||
response.headers["X-Frame-Options"] = "DENY"
|
||||
response.headers["Referrer-Policy"] = "strict-origin-when-cross-origin"
|
||||
if request.path.startswith("/shared/runs/"):
|
||||
response.headers["Referrer-Policy"] = "no-referrer"
|
||||
# OSM tiles require a Referer; never include the share token in it.
|
||||
response.headers["Referrer-Policy"] = "strict-origin"
|
||||
response.headers["X-Robots-Tag"] = "noindex, nofollow"
|
||||
return response
|
||||
|
||||
|
||||
Reference in New Issue
Block a user