HIDE_REFERER incompatible with password based login, added comment to code #996

add-check-counter
dgtlmoon 2 years ago
parent fca66eb558
commit 61f0ac2937

@ -102,8 +102,8 @@ def main():
has_password=datastore.data['settings']['application']['password'] != False
)
# Monitored websites will not receive a Referer header
# when a user clicks on an outgoing link.
# Monitored websites will not receive a Referer header when a user clicks on an outgoing link.
# @Note: Incompatible with password login (and maybe other features) for now, submit a PR!
@app.after_request
def hide_referrer(response):
if os.getenv("HIDE_REFERER", False):

Loading…
Cancel
Save