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

make cookies http-only, allow to set secure and domain #150

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

P4sca1
Copy link

@P4sca1 P4sca1 commented Feb 18, 2025

Signed-off-by: Pascal Sthamer <10992664+P4sca1@users.noreply.github.com>
@frikky
Copy link
Member

frikky commented Feb 19, 2025

Closes Shuffle/Shuffle#1604

Cheers! As long as we keep both session_token and __session this is a great start to refactoring and fixing cookies.

@P4sca1 P4sca1 marked this pull request as ready for review February 19, 2025 07:14
@P4sca1
Copy link
Author

P4sca1 commented Feb 19, 2025

@frikky This MR Is now ready for review. I cleaned up the code by moving the cookie construction into a function and allowed to change the cookie parameters secure and http-only via env variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Secure HTTP-Only cookies for self-hosted deployments
2 participants