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

pull/1099/head
dgtlmoon 2022-11-04 23:46:03 +01:00
rodzic fca66eb558
commit 61f0ac2937
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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):