Flask - Security Best Practices
Why does this Flask code fail to add the
Referrer-Policy header?@app.after_request
def add_header():
response.headers['Referrer-Policy'] = 'no-referrer'
return response