Skip to content

✨ added support for JWT_COOKIE_HTTP_ONLY - #755

Merged
yezz123 merged 1 commit into
yezz123:mainfrom
Evergreenies:bug/ssh-jwt-cookie-746
May 30, 2025
Merged

yezz123 merged 1 commit into
yezz123:mainfrom
Evergreenies:bug/ssh-jwt-cookie-746

Conversation

@Evergreenies

Copy link
Copy Markdown
Contributor

As per the issue #746 added support for this. Previously, It was just a default http_only=True as shown but we have added support in order to make it configurable.

httponly=True,

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=True is a golden rule for sensitive cookies like session IDs, the CSRF cookie is a special case where http_only=False is intentional and part of its effective design.

@vercel

vercel Bot commented May 29, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
authx ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 29, 2025 5:18pm

@codecov

codecov Bot commented May 29, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.66%. Comparing base (b3a3442) to head (a1e007f).
Report is 2 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sonarqubecloud

Copy link
Copy Markdown

@Evergreenies
Evergreenies marked this pull request as ready for review May 29, 2025 17:21

@yezz123 yezz123 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks for the work @Evergreenies 🙏🏻

@yezz123 yezz123 changed the title Added support for JWT_COOKIE_HTTP_ONLY=False ✨ added support for JWT_COOKIE_HTTP_ONLY May 30, 2025
@yezz123
yezz123 merged commit 03d147b into yezz123:main May 30, 2025

This branch was successfully deployed

1 active deployment
Preview — a1e007fb Deployed May 29, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants