Re #1126 HIDE_REFERER setting had wrong default

pull/1128/head
dgtlmoon 2 years ago
parent 85d8d57997
commit a564475325

@ -107,7 +107,7 @@ def main():
# @Note: Incompatible with password login (and maybe other features) for now, submit a PR! # @Note: Incompatible with password login (and maybe other features) for now, submit a PR!
@app.after_request @app.after_request
def hide_referrer(response): def hide_referrer(response):
if strtobool(os.getenv("HIDE_REFERER", False)): if strtobool(os.getenv("HIDE_REFERER", 'false')):
response.headers["Referrer-Policy"] = "no-referrer" response.headers["Referrer-Policy"] = "no-referrer"
return response return response

Loading…
Cancel
Save