Repository navigation
✨ added support for JWT_COOKIE_HTTP_ONLY - #755
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #755 +/- ##
=======================================
Coverage 96.65% 96.66%
=======================================
Files 15 15
Lines 778 779 +1
Branches 76 76
=======================================
+ Hits 752 753 +1
Misses 20 20
Partials 6 6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Evergreenies
marked this pull request as ready for review
May 29, 2025 17:21
yezz123
approved these changes
May 30, 2025
yezz123
left a comment
Owner
There was a problem hiding this comment.
LGTM thanks for the work @Evergreenies 🙏🏻
JWT_COOKIE_HTTP_ONLY
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



As per the issue #746 added support for this. Previously, It was just a default
http_only=Trueas shown but we have added support in order to make it configurable.authx/authx/main.py
Line 196 in 6792c42
Recommendation:
For any cookie that deals with authentication, session management, authorization, or sensitive user data, you should ALWAYS set
http_only=True. This is a fundamental security layer that helps prevent one of the most common web vulnerabilities (XSS) from becoming a full-blown account takeover.So, while
http_only=Trueis a golden rule for sensitive cookies like session IDs, the CSRF cookie is a special case wherehttp_only=Falseis intentional and part of its effective design.