Skip to content

Commit 84f2870

Browse files
authored
Fix HIDE_REFERER env option for hiding changedetection.io from referer headers (#2787)
1 parent 7421e0f commit 84f2870

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

changedetectionio/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,10 @@ def inject_version():
160160
)
161161

162162
# Monitored websites will not receive a Referer header when a user clicks on an outgoing link.
163-
# @Note: Incompatible with password login (and maybe other features) for now, submit a PR!
164163
@app.after_request
165164
def hide_referrer(response):
166165
if strtobool(os.getenv("HIDE_REFERER", 'false')):
167-
response.headers["Referrer-Policy"] = "no-referrer"
166+
response.headers["Referrer-Policy"] = "same-origin"
168167

169168
return response
170169

0 commit comments

Comments
 (0)