Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert Referrer-Policy header commit. #842

Merged
merged 1 commit into from
Sep 29, 2023
Merged

Revert Referrer-Policy header commit. #842

merged 1 commit into from
Sep 29, 2023

Conversation

jwag956
Copy link
Collaborator

@jwag956 jwag956 commented Sep 29, 2023

Although OWASP still recommends that reset password and confirmation links have the no-referrer header option set - this causes issues with HTTPS and Flask-WTF that requires a referrer header. Also - for the past 5 years, the browser default for Referrer-Policy is 'strict-origin-when-cross-origin' which should be enough to mitigate any possible Referrer leakage.

closes #829

Although OWASP still recommends that reset password and confirmation links have the no-referrer header option set - this causes issues with HTTPS and Flask-WTF that requires a referrer header.
Also - for the past 5 years, the browser default for Referrer-Policy is 'strict-origin-when-cross-origin' which should be enough to mitigate any possible Referrer leakage.

closes #829
@codecov
Copy link

codecov bot commented Sep 29, 2023

Codecov Report

All modified lines are covered by tests ✅

Files Coverage Δ
flask_security/views.py 98.76% <100.00%> (ø)

... and 33 files with indirect coverage changes

📢 Thoughts on this report? Let us know!.

@jwag956 jwag956 merged commit dc342d4 into master Sep 29, 2023
16 checks passed
@jwag956 jwag956 deleted the referrer829 branch September 29, 2023 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Production doesn't login after confirmation but dev server does
1 participant